oidc

package
v0.93.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 5 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 = encoding.Claims

Claims is encoding.Claims. To preserve serialization, it must be an alias declaration of encoding.Claims (with an "=") and not a type declaration.

Directories

Path Synopsis
Package encoding defines Claims for interoperable external services to use in JWTs.
Package encoding defines Claims for interoperable external services to use in JWTs.

Jump to

Keyboard shortcuts

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