oidfed

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

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

func GetOIDFedProvider(issuer string) model.Provider

GetOIDFedProvider returns a OIDFedProvider implementing model.Provider for the passed issuer url

func Init

func Init() error

Init inits the oidfed

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

func (OIDFedProvider) AddClientAuthentication(r *resty.Request, endpoint string) *resty.Request

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

Jump to

Keyboard shortcuts

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