Documentation
¶
Index ¶
Constants ¶
View Source
const SESSIONNAME = "promacl-auth"
SESSIONNAME is the gorilla/sessions name
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth interface { LoginHandler(w http.ResponseWriter, r *http.Request) CallbackHandler(w http.ResponseWriter, r *http.Request) Middleware(next http.Handler) http.Handler }
Auth provides all methods neded for an auth provider
type OidcAuth ¶
type OidcAuth struct {
// contains filtered or unexported fields
}
OidcAuth provides middleware and oauth handlers for authentification
func NewOauthAuth ¶
NewOauthAuth creates a new Auth
func (OidcAuth) CallbackHandler ¶
func (a OidcAuth) CallbackHandler(w http.ResponseWriter, r *http.Request)
CallbackHandler is the HTTP route for callback
func (OidcAuth) LoginHandler ¶
func (a OidcAuth) LoginHandler(w http.ResponseWriter, r *http.Request)
LoginHandler is the HTTP route for the login
Click to show internal directories.
Click to hide internal directories.