-
Notifications
You must be signed in to change notification settings - Fork 298
reTurn Server Asynchronous Authentication
Scott Godin edited this page Jan 7, 2022
·
1 revision
- reTurn authenticates users against a static text file
- Various backends exist
- An SQL backend could store the H(A1) values used by repro and other SIP applications
- A [Improving_RADIUS_Support|RADIUS] backend doesn't give out the password or H(A1) value, it performs the HMAC calculation itself and gives a yes/no answer to reTurn
- Nonce factory
- According to RFC 5090, the RADIUS server can potentially supply nonces.
- Therefore, an asynchronous nonce generation workflow is required
- when reTurn sends responses to a client, the response contains a signature
- generating the signature requires the clients H(A1) value
- reTurn may have H(A1) (from a file or in a cache from a database table), or it may ask the RADIUS server to calculate the signature without disclosing the H(A1)
- therefore, this process needs to be asynchronous
- when reTurn receives an authenticated message from the client it needs to validate the MAC
- validating the MAC requires the H(A1) value
- reTurn may have H(A1) (from a file or in a cache from a database table), or it may ask the RADIUS server to calculate the signature without disclosing the H(A1) and then it just compares the signature predicted by RADIUS against that submitted by the client
- request processing
- during request processing, reTurn needs to access an API that does something like generateMAC(request, user)
- implementations of the generateMAC(request, user) API would return 3 possible values:
- a MAC, generated immediately
- decline (e.g. bad username)
- async: a signal that the request should be cached and other requests should be processed while the MAC provider does some DB lookup
- middle-layer: an async wrapper for classes (such as databases) that return the H(A1) to reTurn
- this middle-layer code may offer some kind of caching
- alternative middle-layer: a RADIUS provider
- this code delegates the generateMAC(request, user) operation to RADIUS and doesn't do anything itself
- low-level: database drivers
- specific backends for SQL, LDAP or file database
- Navigation
- Developers
- Packages
- Community