Documentation
¶
Index ¶
Constants ¶
View Source
const (
// Standard claims (http://openid.net/specs/openid-connect-core-1_0.html#StandardClaims)
SubjectClaim = "sub"
PreferredUsernameClaim = "preferred_username"
EmailClaim = "email"
NameClaim = "name"
)
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(providerName string, transport http.RoundTripper, config Config) (external.Provider, error)
NewProvider returns an implementation of an OpenID Connect Authorization Code Flow See http://openid.net/specs/openid-connect-core-1_0.html#CodeFlowAuth ID Token decryption is not supported UserInfo decryption is not supported
Types ¶
type Config ¶
type Config struct {
ClientID string
ClientSecret string
Scopes []string
ExtraAuthorizeParameters map[string]string
AuthorizeURL string
TokenURL string
UserInfoURL string
IDClaims []string
PreferredUsernameClaims []string
EmailClaims []string
NameClaims []string
IDTokenValidator TokenValidator
}
type TokenValidator ¶
type TokenValidator func(map[string]interface{}) error
Click to show internal directories.
Click to hide internal directories.