Documentation ¶
Overview ¶
Package oidc defines types for OpenID Connect
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Google ¶
type Google struct { ClientID string ClientSecret string RedirectURI string SessionStore sessions.Store }
Google represents an OpenID Connect client for http://accounts.google.com
type Paypal ¶
type Paypal struct { ClientID string ClientSecret string RedirectURI string SessionStore sessions.Store }
Paypal is not fully OIDC compliant, therefor it's not possible to verify the id_token HMAC See: https://groups.google.com/forum/#!topic/mod_auth_openidc/fPc_C8rb9ns
type Provider ¶
type Provider interface { // NewAuth starts a new OIDC authentication and redirects the user to the identity provider NewAuth(w http.ResponseWriter, r *http.Request) // Callback receives the callback from the identity provider, verifies it and requests user data Callback(w http.ResponseWriter, r *http.Request) (user map[string]string, err error) }
Provider represents an OpenID Connect client
Click to show internal directories.
Click to hide internal directories.