oidc

package
v1.23.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNonce

func NewNonce() (string, error)

func NewState

func NewState() (string, error)

Types

type Provider added in v1.22.0

type Provider struct {
	IssuerURL    string
	ClientID     string
	ClientSecret string   // optional
	ExtraScopes  []string // optional
}

Provider represents an OIDC provider.

type TokenSet

type TokenSet struct {
	IDToken      string
	RefreshToken string
}

TokenSet represents a set of ID token and refresh token.

func (TokenSet) DecodeWithoutVerify added in v1.22.0

func (ts TokenSet) DecodeWithoutVerify() (*jwt.Claims, error)

Directories

Path Synopsis
Package client provides a client of OpenID Connect.
Package client provides a client of OpenID Connect.
mock_client
Package mock_client is a generated GoMock package.
Package mock_client is a generated GoMock package.

Jump to

Keyboard shortcuts

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