client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePrivateKeyJwt

func CreatePrivateKeyJwt(clientID string, x509Cert x509.Certificate, tokenEndpoint string, privateKey crypto.PrivateKey) (string, error)

func HandleCorpIdpExchangeFlow

func HandleCorpIdpExchangeFlow(clientID string, clientSecret string, existingIdToken string, idpScopeParameter string, privateKeyJwt string, provider oidc.Provider, tlsClient http.Client) map[string]interface{}

func HandleOpenIDFlow

func HandleOpenIDFlow(clientID, clientSecret, callbackURL string, scopeParameter string, refreshExpiry string, tokenFormatParameter string, port string, endsession string, privateKeyJwt string, provider oidc.Provider, tlsClient http.Client) (string, string)

func HandleRefreshFlow

func HandleRefreshFlow(clientID string, clientSecret string, existingRefresh string, refreshExpiry string, privateKeyJwt string, provider oidc.Provider) string

Types

type OIDC_Token

type OIDC_Token struct {
	// ID token according to OIDC standard, always JWT
	IdToken string `json:"id_token"`
	// AccessToken is the token according to OAuth2 standard, might be opaque or JWT
	AccessToken string `json:"access_token"`
	// RefreshToken is a token that's used by the application
	RefreshToken string `json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

take from oauth2.token structure

Jump to

Keyboard shortcuts

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