codeexchange

package
v1.10.0-initial-react-... Latest Latest
Warning

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

Go to latest
Published: Jul 19, 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