oidc

package
v1.34.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 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 PKCEMethod added in v1.32.0

type PKCEMethod int

PKCEMethod represents a preferred method of PKCE.

const (
	PKCEMethodAuto PKCEMethod = iota
	PKCEMethodNo
	PKCEMethodS256
)

type Provider added in v1.22.0

type Provider struct {
	IssuerURL      string
	ClientID       string
	ClientSecret   string   // optional
	ExtraScopes    []string // optional
	RedirectURL    string   // optional
	PKCEMethod     PKCEMethod
	UseAccessToken bool
	RequestHeaders map[string]string
}

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.

Jump to

Keyboard shortcuts

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