# Functions
CheckOAuthAccessToken returns uid of user from oauth token.
Free should be called exactly once when the application is terminating to allow SSO plugins to release necessary resources.
Init should be called exactly once when the application starts to allow SSO plugins to allocate necessary resources.
Methods returns the instances of all registered SSO methods.
Register adds the specified instance to the list of available SSO methods.
SessionUser returns the user object corresponding to the "uid" session variable.
# Structs
Basic implements the SingleSignOn interface and authenticates requests (API requests only) by looking for Basic authentication data or "x-oauth-basic" token in the "Authorization" header.
OAuth2 implements the SingleSignOn interface and authenticates requests (API requests only) by looking for an OAuth token in query parameters or the "Authorization" header.
ReverseProxy implements the SingleSignOn interface, but actually relies on a reverse proxy for authentication of users.
Session checks if there is a user uid stored in the session and returns the user object for that uid.
# Interfaces
SingleSignOn represents a SSO authentication method (plugin) for HTTP requests.