codeexchange

package
v1.0.13-herb-2fa-v2.12 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExchangeCodeRequest

type ExchangeCodeRequest struct {
	IDPHint      string `json:"idp_hint"`
	ClientID     string `json:"client_id"`
	Code         string `json:"code"`
	CodeVerifier string `json:"code_verifier"`
	Nonce        string `json:"nonce"`
}

type ExchangeCodeResponse

type ExchangeCodeResponse struct {
	IDPHint     string `json:"idp_hint"`
	ClientID    string `json:"client_id"`
	IdToken     string `json:"id_token"`
	AccessToken string `json:"access_token"`
}

type ICodeExchange

type ICodeExchange interface {
	ExchangeCode(ctx context.Context, req *ExchangeCodeRequest) (*ExchangeCodeResponse, error)
}

type IGenericOIDCCodeExchange

type IGenericOIDCCodeExchange interface {
	ICodeExchange
}

type IGithubCodeExchange

type IGithubCodeExchange interface {
	ICodeExchange
}

Jump to

Keyboard shortcuts

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