sso

package
v0.0.0-...-f83813f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 21 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
	SimpleStoreRedisFactory      *SimpleStoreRedisFactory
}

func (*OAuthProviderFactory) GetAuthorizationURL

func (p *OAuthProviderFactory) GetAuthorizationURL(ctx context.Context, 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(ctx context.Context, alias string, options oauthrelyingparty.GetUserProfileOptions) (userProfile oauthrelyingparty.UserProfile, err error)

type SimpleStoreRedis

type SimpleStoreRedis struct {
	// contains filtered or unexported fields
}

func (*SimpleStoreRedis) GetDel

func (s *SimpleStoreRedis) GetDel(ctx context.Context, key string) (data string, err error)

func (*SimpleStoreRedis) SetWithTTL

func (s *SimpleStoreRedis) SetWithTTL(ctx context.Context, key string, value string, ttl time.Duration) error

type SimpleStoreRedisFactory

type SimpleStoreRedisFactory struct {
	AppID config.AppID
	Redis *appredis.Handle
}

func (*SimpleStoreRedisFactory) GetStoreByProvider

func (f *SimpleStoreRedisFactory) GetStoreByProvider(providerType string, providerAlias string) *SimpleStoreRedis

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