oidc

package
v0.0.0-...-44a5619 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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

type Provider struct {
	IssuerURL    string
	ClientID     string
	ClientSecret string   // optional
	ExtraScopes  []string // optional
	UsePKCE      bool     // 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

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.

Jump to

Keyboard shortcuts

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