provider

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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

func GetProvider(issuer string) model.Provider

GetProvider returns the model.Provider for a passed issuer

func Init

func Init()

Init inits the configured providers

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

Jump to

Keyboard shortcuts

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