From: Juliusz Chroboczek <jch@irif.fr>
To: "Gabriel Kerneis" <gabriel@kerneis.info>
Cc: Cell <galene.org@kn1ght.org>, galene@lists.galene.org
Subject: [Galene] Re: coturn config
Date: Sat, 02 Jan 2021 01:02:02 +0100 [thread overview]
Message-ID: <87lfdcuryd.wl-jch@irif.fr> (raw)
In-Reply-To: <fa5c933e-dd7a-4ccf-b6e7-1fcf6b7b7a92@www.fastmail.com>
>> "username": "galene",
>> "credential": "secret",
>> "credentialType": "hmac-sha1"
> There is no username in the coturn configuration when using TURN REST API,
> so is the "username" key still necessary here?
It is optional. If present, it will be communicated to the TURN server in
a secure manner (it cannot be spoofed by the client), so it may be used
for logging or accounting.
The protocol is fairly simple. The WebRTC server picks an expiration date
for the credentials and encodes it as Unix time in base 10. It then sets
if original_username == ""
username = expires
else
username = expires:original_username
password = BASE64(HMAC_SHA1(username, secret))
This is equivalent to the code that Toke posted earlier, except that that
code picks the username at random.
-- Juliusz
next prev parent reply other threads:[~2021-01-02 0:02 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-27 16:57 [Galene] " Cell
2020-12-27 17:55 ` [Galene] " Toke Høiland-Jørgensen
2020-12-27 18:02 ` Cell
2020-12-27 18:06 ` Cell
2020-12-27 18:16 ` Toke Høiland-Jørgensen
2020-12-27 19:04 ` Juliusz Chroboczek
2020-12-27 19:27 ` Juliusz Chroboczek
2020-12-27 20:32 ` Toke Høiland-Jørgensen
2020-12-27 23:28 ` Juliusz Chroboczek
2020-12-28 1:38 ` Toke Høiland-Jørgensen
2020-12-28 18:49 ` Juliusz Chroboczek
2020-12-28 19:59 ` Toke Høiland-Jørgensen
2020-12-29 1:56 ` Juliusz Chroboczek
2020-12-29 2:09 ` Toke Høiland-Jørgensen
2020-12-29 8:35 ` Michael Ströder
2021-01-01 22:55 ` Juliusz Chroboczek
2021-01-01 23:43 ` Gabriel Kerneis
2021-01-02 0:02 ` Juliusz Chroboczek [this message]
2021-01-07 12:07 ` Michael Ströder
2021-01-07 12:14 ` Toke Høiland-Jørgensen
2021-01-07 12:31 ` [Galene] logging (was: coturn config) Michael Ströder
2021-01-07 13:27 ` [Galene] Re: coturn config Juliusz Chroboczek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.galene.org/postorius/lists/galene.lists.galene.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lfdcuryd.wl-jch@irif.fr \
--to=jch@irif.fr \
--cc=gabriel@kerneis.info \
--cc=galene.org@kn1ght.org \
--cc=galene@lists.galene.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox