Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONWebKey ¶
type JSONWebKey struct {
Kty string
E string
N string
Use string
Kid string
Alg string
Key interface{}
}
JSONWebKey represents a single JWK
type JSONWebKeySet ¶
type JSONWebKeySet struct {
Keys []*JSONWebKey `json:"keys"`
}
JSONWebKeySet represents the data which is returned by the tenants /oauth2/certs endpoint
type OIDCTenant ¶
type OIDCTenant struct {
ProviderJSON ProviderJSON
// contains filtered or unexported fields
}
OIDCTenant represents one IAS tenant with it's OIDC discovery results and cached JWKs
func NewOIDCTenant ¶
NewOIDCTenant instantiates a new OIDCTenant and performs the OIDC discovery
func (*OIDCTenant) GetJWKs ¶
func (ks *OIDCTenant) GetJWKs() ([]*JSONWebKey, 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
Click to show internal directories.
Click to hide internal directories.