Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthnClientSession ¶
type AuthnClientSession struct {
ID string `json:"id"`
Issuer string `json:"issuer"`
State string `json:"state"`
Nonce string `json:"nonce"`
Verifier string `json:"verifier"`
RedirectURI string `json:"redirect_uri"`
AuthURL string `json:"auth_url"`
TokenResponse *oauth2.TokenResponse `json:"token_response"`
Claims map[string]interface{} `json:"claims"`
}
type AuthnClientSessionStore ¶
type AuthnClientSessionStore interface {
GetAuthnClientSessionByID(id string) (*AuthnClientSession, error)
GetAuthnClientSessionByState(state string) (*AuthnClientSession, error)
SaveAuthnClientSession(session *AuthnClientSession) error
DeleteAuthnClientSession(state string) error
}
type Client ¶
type DiscoveryDocument ¶
type DiscoveryDocument struct {
Issuer string `json:"issuer"`
AuthorizationEndpoint string `json:"authorization_endpoint"`
TokenEndpoint string `json:"token_endpoint"`
JwksURI string `json:"jwks_uri"`
UserinfoEndpoint string `json:"userinfo_endpoint"`
RevocationEndpoint string `json:"revocation_endpoint"`
ResponseTypesSupported []string `json:"response_types_supported"`
IdTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported"`
}
func FetchDiscoveryDocument ¶
func FetchDiscoveryDocument(url string) (*DiscoveryDocument, error)
Click to show internal directories.
Click to hide internal directories.