sso

package
v0.0.0-...-dd92fb5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidConfiguration = apierrors.InternalError.WithReason("InvalidConfiguration")
View Source
var OAuthProtocolError = apierrors.BadRequest.WithReason("OAuthProtocolError")

Functions

This section is empty.

Types

type OAuthHTTPClient

type OAuthHTTPClient struct {
	*http.Client
}

func ProvideOAuthHTTPClient

func ProvideOAuthHTTPClient(env *config.EnvironmentConfig) OAuthHTTPClient

type OAuthProviderFactory

type OAuthProviderFactory struct {
	IdentityConfig               *config.IdentityConfig
	Credentials                  *config.OAuthSSOProviderCredentials
	Clock                        clock.Clock
	StandardAttributesNormalizer StandardAttributesNormalizer
	HTTPClient                   OAuthHTTPClient
}

func (*OAuthProviderFactory) GetAuthorizationURL

func (p *OAuthProviderFactory) GetAuthorizationURL(alias string, options oauthrelyingparty.GetAuthorizationURLOptions) (url string, err error)

func (*OAuthProviderFactory) GetProviderConfig

func (p *OAuthProviderFactory) GetProviderConfig(alias string) (oauthrelyingparty.ProviderConfig, error)

func (*OAuthProviderFactory) GetUserProfile

func (p *OAuthProviderFactory) GetUserProfile(alias string, options oauthrelyingparty.GetUserProfileOptions) (userProfile oauthrelyingparty.UserProfile, err error)

type StandardAttributesNormalizer

type StandardAttributesNormalizer interface {
	Normalize(stdattrs.T) error
}

Jump to

Keyboard shortcuts

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