Documentation
¶
Overview ¶
Package authentication contains the routines a TURN server checks STUNner authentication credentials with; the credentials themselves are generated by the auth policies of the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTimeWindowedUsername ¶
CheckTimeWindowedUsername checks the validity of an authentication credential. The method mostly follows the "REST API For Access To TURN Services" (https://datatracker.ietf.org/doc/html/draft-uberti-behave-turn-rest-00) spec with the exception that we make more effort to find out which component of the username is the UNIX timestamp: we find the first thing that looks like a UNIX timestamp in the username and use that for checking the time-windowed credential, and reject everything else.
func GenerateAuthKey ¶
GenerateAuthKey is a convenience function to easily generate keys in the format used by AuthHandler. Re-exported from `pion/turn` so that our callers will have a single import.
Types ¶
type AuthHandler ¶
type AuthHandler = turn.AuthHandler
AuthHandler specifies type of the TURN authentication handler used in Stunner. Re-exported from pion/turn for completeness.
type PermissionHandler ¶
type PermissionHandler = turn.PermissionHandler
PermissionHandler specifies type of the TURN permission handler used in Stunner. Re-exported from pion/turn for completeness.