oidcclient

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientInfo added in v0.16.0

type ClientInfo struct {
	ClientID string
	AppTID   string
	Azp      string
}

type OIDCTenant

type OIDCTenant struct {
	ProviderJSON ProviderJSON
	// contains filtered or unexported fields
}

OIDCTenant represents one IAS tenant correlating with one app_tid and client_id with it's OIDC discovery results and cached JWKs

func NewOIDCTenant

func NewOIDCTenant(httpClient *http.Client, targetIssHost string) (*OIDCTenant, error)

NewOIDCTenant instantiates a new OIDCTenant and performs the OIDC discovery

func (*OIDCTenant) GetJWKs

func (ks *OIDCTenant) GetJWKs(clientInfo ClientInfo) (jwk.Set, error)

GetJWKs returns the validation keys either cached or updated ones

type ProviderJSON

type ProviderJSON struct {
	Issuer      string `json:"issuer"`
	AuthURL     string `json:"authorization_endpoint"`
	TokenURL    string `json:"token_endpoint"`
	JWKsURL     string `json:"jwks_uri"`
	UserInfoURL string `json:"userinfo_endpoint"`
}

ProviderJSON represents data which is returned by the tenants /.well-known/openid-configuration endpoint

Jump to

Keyboard shortcuts

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