pkg

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Issuer                          string
	ResponseTypesSupported          oidc.ResponseTypeSet
	ResponseModesSupported          oidc.ResponseModeSet
	GrantTypesSupported             oidc.GrantTypeSet
	AcrValuesSupported              map[string]struct{}
	DisplayValuesSupported          map[oidc.Display]struct{}
	ClaimsParameterSupported        bool
	ClaimsLocalesSupported          map[string]struct{}
	UILocalesSupported              map[string]struct{}
	RequestParameterSupported       bool
	RequestURIParameterSupported    bool
	RequireRequestURIRegistration   bool
	AuthorizationCodeTTLSeconds     int64
	AccessTokenTTLSeconds           int64
	AccessTokenSigningAlgValue      string
	RefreshTokenTTLSeconds          int64
	IdTokenTTLSeconds               int64
	UserInteractionTimeLimitSeconds int64
	DefaultInteractionProvider      string
}

Provider contains the OpenID Connect Provider Metadata that is relevant to the processing of the authorization server. In other words, pure information data are not included in this structure.

func (*Provider) AccessTokenLifespan

func (p *Provider) AccessTokenLifespan() time.Duration

AccessTokenLifespan returns time.Duration representing the lifespan of access tokens.

func (*Provider) AuthorizationCodeLifespan

func (p *Provider) AuthorizationCodeLifespan() time.Duration

AuthorizationCodeLifespan returns time.Duration representing the lifespan of authorization code

func (*Provider) IdTokenLifespan

func (p *Provider) IdTokenLifespan() time.Duration

IdTokenLifespan returns time.Duration representing the lifespan of id token.

func (*Provider) RefreshTokenLifespan

func (p *Provider) RefreshTokenLifespan() time.Duration

RefreshTokenLifespan returns time.Duration representing the lifespan of refresh tokens.

func (*Provider) SupportsAnyAcrValues

func (p *Provider) SupportsAnyAcrValues(acrValues []string) bool

SupportsAnyAcrValues checks provider supports one or more supplied acr values.

func (*Provider) SupportsAnyClaimsLocales

func (p *Provider) SupportsAnyClaimsLocales(locales []string) bool

SupportsAnyClaimsLocales checks provider supports one or more supplied claims locales.

func (*Provider) SupportsAnyUILocales

func (p *Provider) SupportsAnyUILocales(locales []string) bool

SupportsAnyUILocales checks provider supports one or more supplied ui locales.

func (*Provider) SupportsDisplay

func (p *Provider) SupportsDisplay(display oidc.Display) bool

SupportsDisplay checks if the given display is supported by the provider

func (*Provider) SupportsGrantType

func (p *Provider) SupportsGrantType(grantType oidc.GrantType) bool

SupportsGrantType checks if the given grant type is supported by the provider

func (*Provider) SupportsResponseMode

func (p *Provider) SupportsResponseMode(mode oidc.ResponseMode) bool

SupportsResponseMode checks if the given response mode is supported by the provider

func (*Provider) SupportsResponseType

func (p *Provider) SupportsResponseType(responseType oidc.ResponseType) bool

SupportsResponseTypes checks if the given response types combo is supported by the provider

func (*Provider) UnmarshalJSON

func (p *Provider) UnmarshalJSON(raw []byte) error

func (*Provider) UserInteractionLifespan

func (p *Provider) UserInteractionLifespan() time.Duration

UserInteractionLifespan returns time.Duration representing the maximum allowed time for user interaction in seconds.

Directories

Path Synopsis
JSON object signing and encryption definitions and utilities.
JSON object signing and encryption definitions and utilities.
Parameters and core models used in the OpenID Connect processing.
Parameters and core models used in the OpenID Connect processing.

Jump to

Keyboard shortcuts

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