Documentation
¶
Overview ¶
Package auth provides internal authentication / authorization types and utilities for the TURN server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
type AuthHandler func(ra *RequestAttributes) (userID string, key []byte, ok bool)
AuthHandler is a callback used to handle incoming auth requests, allowing users to customize Pion TURN with custom behavior.
type RequestAttributes ¶
type RequestAttributes struct {
Username string
Realm string
SrcAddr net.Addr
TLS *tls.ConnectionState
}
RequestAttributes represents attributes of a TURN request which may be useful for authorizing the underlying request.
Click to show internal directories.
Click to hide internal directories.