Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OIDCConnection ¶
type OIDCConnection struct { oauth.BaseOAuthProvider ProviderName string Provider *oidc.Provider Config oauth2.Config Verifier *oidc.IDTokenVerifier LogoBytes []byte DynamicBaseURL func(r *http.Request) string }
OIDCConnection implements a generic OIDC provider.
func NewOIDCConnection ¶
func NewOIDCConnection(ctx context.Context, params OIDCConnectionParams) (*OIDCConnection, error)
NewOIDCConnection creates a new OIDCConnection instance. providerName should be unique (e.g., "google", "azure", etc.) for each connection.
func (*OIDCConnection) GetName ¶
func (o *OIDCConnection) GetName() string
GetName returns the configured provider name.
func (*OIDCConnection) GetUserByEmail ¶
func (o *OIDCConnection) GetUserByEmail(email string, r *http.Request, customUserInterface ...users.LocksmithUserInterface) users.LocksmithUserInterface
GetUserByEmail retrieves the user given an email.
func (*OIDCConnection) RegisterRoutes ¶
func (o *OIDCConnection) RegisterRoutes(apiMux *http.ServeMux)
RegisterRoutes registers the OIDC endpoints.
type OIDCConnectionParams ¶
Click to show internal directories.
Click to hide internal directories.