Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregationProviderInterface ¶ added in v0.4.2
type AggregationProviderInterface interface { ExtractProvider(OAuth2Provider) (ProviderInterface, error) Provider() OAuth2Provider Providers() []OAuth2Provider }
type OAuth2Provider ¶
type OAuth2Provider = string
type Oauth2Option ¶
type Provider ¶ added in v0.4.2
type Provider interface { Init(Oauth2Option) Provider() OAuth2Provider }
type ProviderInterface ¶
type ProviderInterface interface { Provider NewAuthURL(context.Context, string) (string, error) GetUserInfo(context.Context, string) (*UserInfo, error) }
func ExtractProviders ¶ added in v0.4.2
func ExtractProviders(p AggregationProviderInterface, providers ...OAuth2Provider) ([]ProviderInterface, error)
Click to show internal directories.
Click to hide internal directories.