Documentation
¶
Index ¶
- type ProviderRegistry
- func (r *ProviderRegistry) Endpoint(providerID string) (oauth2.Endpoint, bool)
- func (r *ProviderRegistry) HTTPClient(providerID string) *http.Client
- func (r *ProviderRegistry) Register(providerID string, endpoint oauth2.Endpoint, fetcher UserInfoFetcher, ...)
- func (r *ProviderRegistry) UserInfo(ctx context.Context, providerID string, token *oauth2.Token) (providerUserID, email string, err error)
- type UserInfoFetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderRegistry ¶
type ProviderRegistry struct {
// contains filtered or unexported fields
}
func NewProviderRegistry ¶
func NewProviderRegistry(cfg *config.Config) (*ProviderRegistry, error)
func (*ProviderRegistry) Endpoint ¶
func (r *ProviderRegistry) Endpoint(providerID string) (oauth2.Endpoint, bool)
func (*ProviderRegistry) HTTPClient ¶ added in v0.1.1
func (r *ProviderRegistry) HTTPClient(providerID string) *http.Client
func (*ProviderRegistry) Register ¶
func (r *ProviderRegistry) Register(providerID string, endpoint oauth2.Endpoint, fetcher UserInfoFetcher, client *http.Client)
Click to show internal directories.
Click to hide internal directories.