Skip to content

Commit

Permalink
Add hash algorithm for key value to redis userdb schema
Browse files Browse the repository at this point in the history
  • Loading branch information
wuelcas committed Jan 14, 2021
1 parent e5d4e62 commit a767115
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions turndb/schema.userdb.redis
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ has the following schema:

1) For the long-term credentials there must be keys
"turn/realm/<realm-name>/user/<username>/key" and the values must be
the the hmackeys. For example, for the user "gorst", realm "north.gov"
the hmackeys which is an md5 hash of "<username>:<realm-name>:<password>"
(See STUN RFC: https://tools.ietf.org/html/rfc5389#page-35).
For example, for the user "gorst", realm "north.gov"
and password "hero", there must be key "turn/realm/north.gov/user/gorst/key"
with value "7da2270ccfa49786e0115366d3a3d14d".
and the value should be md5 hash of "gorst:north.gov:hero"
which will result in "7da2270ccfa49786e0115366d3a3d14d".

2) For the shared secrets (REST API), several key/value pairs
may be used (same as in SQL schema). The secrets are stored as members
Expand Down

0 comments on commit a767115

Please sign in to comment.