Documentation ¶
Index ¶
- func GetEnforcedRestrictionsByIssuer(issuer string) (c config.EnforcedRestrictionsConf)
- func GetProvider(issuer string) model.Provider
- func Init()
- type SimpleProvider
- func (p SimpleProvider) AddClientAuthentication(r *resty.Request, _ string) *resty.Request
- func (p SimpleProvider) Audience() *model.AudienceConf
- func (p SimpleProvider) ClientID() string
- func (p SimpleProvider) Endpoints() *oauth2x.Endpoints
- func (p SimpleProvider) GetAuthorizationURL(rlog log.Ext1FieldLogger, state, pkceChallenge string, ...) (string, error)
- func (p SimpleProvider) Issuer() string
- func (p SimpleProvider) MaxMytokenLifetime() int64
- func (p SimpleProvider) Name() string
- func (p SimpleProvider) Scopes() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnforcedRestrictionsByIssuer ¶
func GetEnforcedRestrictionsByIssuer(issuer string) (c config.EnforcedRestrictionsConf)
GetEnforcedRestrictionsByIssuer returns the config.EnforcedRestrictionsConf for the passed issuer
func GetProvider ¶
GetProvider returns the model.Provider for a passed issuer
Types ¶
type SimpleProvider ¶
type SimpleProvider struct {
*config.ProviderConf
}
SimpleProvider implements the Provider interface for normal OIDC providers with a registered client
func (SimpleProvider) AddClientAuthentication ¶
func (p SimpleProvider) AddClientAuthentication(r *resty.Request, _ string) *resty.Request
AddClientAuthentication implements the Provider interface
func (SimpleProvider) Audience ¶
func (p SimpleProvider) Audience() *model.AudienceConf
Audience implements the Provider interface
func (SimpleProvider) ClientID ¶
func (p SimpleProvider) ClientID() string
ClientID implements the Provider interface
func (SimpleProvider) Endpoints ¶
func (p SimpleProvider) Endpoints() *oauth2x.Endpoints
Endpoints implements the Provider interface
func (SimpleProvider) GetAuthorizationURL ¶
func (p SimpleProvider) GetAuthorizationURL( rlog log.Ext1FieldLogger, state, pkceChallenge string, scopeRestrictions, audRestrictions []string, ) (string, error)
GetAuthorizationURL creates an authorization url
func (SimpleProvider) Issuer ¶
func (p SimpleProvider) Issuer() string
Issuer implements the Provider interface
func (SimpleProvider) MaxMytokenLifetime ¶
func (p SimpleProvider) MaxMytokenLifetime() int64
MaxMytokenLifetime implements the Provider interface
func (SimpleProvider) Name ¶
func (p SimpleProvider) Name() string
Name implements the Provider interface
func (SimpleProvider) Scopes ¶
func (p SimpleProvider) Scopes() []string
Scopes implements the Provider interface