oidc

package
v0.91.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTokenExtract = errors.New("failed to extract id token")

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

func NewAuthenticator

func NewAuthenticator(oauthConfig *oauth2.Config, oidcProvider *oidc.Provider) *Authenticator

func (*Authenticator) GetIDTokenClaims

func (a *Authenticator) GetIDTokenClaims(ctx context.Context, code string) (Claims, error)

GetIDTokenClaims exchanges a temporary code for an ID token. The ID token is verified to be valid, and its Claims are then returned.

type Claims

type Claims map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL