Documentation
¶
Index ¶
- func AllSupportedScopes() []string
- func Discovery()
- func GetOIDFedProvider(issuer string) model.Provider
- func Init() error
- func SupportedProviders() (providers []api.SupportedProviderConfig)
- type OIDFedProvider
- func (OIDFedProvider) AddClientAuthentication(r *resty.Request, endpoint string) *resty.Request
- func (OIDFedProvider) Audience() *model.AudienceConf
- func (OIDFedProvider) ClientID() string
- func (p OIDFedProvider) Endpoints() *oauth2x.Endpoints
- func (p OIDFedProvider) GetAuthorizationURL(rlog log.Ext1FieldLogger, state, pkceChallenge string, ...) (string, error)
- func (p OIDFedProvider) Issuer() string
- func (OIDFedProvider) MaxMytokenLifetime() int64
- func (p OIDFedProvider) Name() string
- func (p OIDFedProvider) Scopes() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllSupportedScopes ¶
func AllSupportedScopes() []string
AllSupportedScopes returns the union of all scopes supported by the discovered OPs
func Discovery ¶
func Discovery()
Discovery starts the OP discovery process for OPs below the configured trust anchors and schedules periodic reruns based on the configured interval
func GetOIDFedProvider ¶
GetOIDFedProvider returns a OIDFedProvider implementing model.Provider for the passed issuer url
func SupportedProviders ¶
func SupportedProviders() (providers []api.SupportedProviderConfig)
SupportedProviders returns the api.SupportedProviderConfig for the discovered OPs in the federation
Types ¶
type OIDFedProvider ¶
type OIDFedProvider struct {
*oidfed.OpenIDProviderMetadata
}
OIDFedProvider implements the model.Provider interface for oidc fed
func (OIDFedProvider) AddClientAuthentication ¶
AddClientAuthentication implements the model.Provider interface; it adds a client assertion to the request
func (OIDFedProvider) Audience ¶
func (OIDFedProvider) Audience() *model.AudienceConf
Audience implements the model.Provider interface
func (OIDFedProvider) ClientID ¶
func (OIDFedProvider) ClientID() string
ClientID implements the model.Provider interface
func (OIDFedProvider) Endpoints ¶
func (p OIDFedProvider) Endpoints() *oauth2x.Endpoints
Endpoints implements the model.Provider interface
func (OIDFedProvider) GetAuthorizationURL ¶
func (p OIDFedProvider) GetAuthorizationURL( rlog log.Ext1FieldLogger, state, pkceChallenge string, scopeRestrictions, audRestrictions []string, ) (string, error)
GetAuthorizationURL creates an authorization url using oidfed automatic client registration
func (OIDFedProvider) Issuer ¶
func (p OIDFedProvider) Issuer() string
Issuer implements the model.Provider interface
func (OIDFedProvider) MaxMytokenLifetime ¶
func (OIDFedProvider) MaxMytokenLifetime() int64
MaxMytokenLifetime implements the model.Provider interface
func (OIDFedProvider) Name ¶
func (p OIDFedProvider) Name() string
Name implements the model.Provider interface
func (OIDFedProvider) Scopes ¶
func (p OIDFedProvider) Scopes() []string
Scopes implements the model.Provider interface