Documentation ¶
Index ¶
- Variables
- type OAuthHTTPClient
- type OAuthProviderFactory
- func (p *OAuthProviderFactory) GetAuthorizationURL(ctx context.Context, alias string, ...) (url string, err error)
- func (p *OAuthProviderFactory) GetProviderConfig(alias string) (oauthrelyingparty.ProviderConfig, error)
- func (p *OAuthProviderFactory) GetUserProfile(ctx context.Context, alias string, ...) (userProfile oauthrelyingparty.UserProfile, err error)
- type SimpleStoreRedis
- type SimpleStoreRedisFactory
- type StandardAttributesNormalizer
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( ProvideOAuthHTTPClient, wire.Struct(new(OAuthProviderFactory), "*"), wire.Struct(new(SimpleStoreRedisFactory), "*"), )
View Source
var InvalidConfiguration = apierrors.InternalError.WithReason("InvalidConfiguration")
View Source
var OAuthProtocolError = apierrors.BadRequest.WithReason("OAuthProtocolError")
Functions ¶
This section is empty.
Types ¶
type OAuthHTTPClient ¶
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) SetWithTTL ¶
type SimpleStoreRedisFactory ¶
func (*SimpleStoreRedisFactory) GetStoreByProvider ¶
func (f *SimpleStoreRedisFactory) GetStoreByProvider(providerType string, providerAlias string) *SimpleStoreRedis
Click to show internal directories.
Click to hide internal directories.