Versions in this module Expand all Collapse all v0 v0.1.0 Feb 5, 2022 Changes in this version + type AuthCfg struct + OpenIdAudience string + OpenIdClientId string + OpenIdScope string + OpenIdSecretFile string + OpenIdSecretSubdir string + OpenidWellKnownConfigUrl string + func NewAuthCfg(...) AuthCfg + func NewAuthCfgFromFile(filename string) (*AuthCfg, error) + func (ac *AuthCfg) Audience() string + func (ac *AuthCfg) ClientId() string + func (ac *AuthCfg) OpenidConfigurationUrl() string + func (ac *AuthCfg) Scope() string + func (ac *AuthCfg) SecretFile() string + func (ac *AuthCfg) SecretSubdir() string + type JsonWebKeys struct + Alg string + E string + Kid string + Kty string + N string + Use string + X5c []string + type Jwks struct + Keys []JsonWebKeys + func (jwks *Jwks) ExtractPublicKeyMatchingToken(logger logger.LoggerInterface, token *jwt.Token) (pubkey *rsa.PublicKey, err error) + type OpenidConfiguration struct + Authorization_endpoint string + Claims_supported []string + Code_challenge_methods_supported []string + Device_authorization_endpoint string + Id_token_signing_alg_values_supported []string + Issuer string + Jwks_uri string + Mfa_challenge_endpoint string + Registration_endpoint string + Request_url_parameter_supported bool + Response_modes_supported []string + Response_types_supported []string + Revocation_endpoint string + Scopes_supported []string + Subject_types_supported []string + Token_endpoint string + Token_endpoint_auth_methods_supported []string + Userinfo_endpoint string + func NewOpenIdConfigurationFromURL(ctx context.Context, logger logger.LoggerInterface, ...) (oic *OpenidConfiguration, err error) + func (oic *OpenidConfiguration) DeviceAuthEndpointURL() string + func (oic *OpenidConfiguration) Get() ([]byte, error) + func (oic *OpenidConfiguration) IssuerURL() string + func (oic *OpenidConfiguration) JwksURI() string + func (oic *OpenidConfiguration) TokenEndpointURL() string + func (oic *OpenidConfiguration) UserinfoURL() string + type Userinfo struct + Address map[string]string + Birthdate string + Email string + Email_verified bool + Family_name string + Gender string + Given_name string + Locale string + Middle_name string + Name string + Nickname string + Phone_number string + Phone_number_verified bool + Picture string + Preferred_username string + Profile string + Sub string + Updated_at string + Website string + Zoneinfo string + func NewUserInfo(ctx context.Context, logger logger.LoggerInterface, ...) (ui *Userinfo, err error) + type UserinfoMap struct + func New() *UserinfoMap + func (um *UserinfoMap) Get(ctx context.Context, logger logger.LoggerInterface, ...) (u *Userinfo, err error)