Documentation ¶
Overview ¶
Package auth provides a simple wrapper around values needed for the openidconnect package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OIDCProviderConfig ¶
type OIDCProviderConfig struct { OIDCClientKey string OIDCClientSecret string OIDCCallbackURL string OIDCDiscoveryURL string OIDCProviderName string OIDCScopes []string }
OIDCProviderConfig is used to configure the openidconnect object from the openidconnect package github.com/markbates/goth/providers/openidConnect
type OIDCUserInfo ¶
type OIDCUserInfo struct { Name string `json:"name"` Email string `json:"email"` Sub string `json:"sub"` }
OIDCUserInfo provides basic user info from OIDC
func UserInfoFromJWT ¶
func UserInfoFromJWT(ctx context.Context, rawToken string, oidcConfigs []ginjwt.AuthConfig) (*OIDCUserInfo, error)
UserInfoFromJWT tries to retrieve the user info (id token claims) using the given jwt token. It will use the oidc provider matching the issuer in the access token
Click to show internal directories.
Click to hide internal directories.