Documentation
¶
Index ¶
- Constants
- func NewScopeVerifier(scope string) verifier.Verifier
- type ConfigOverride
- type GenericOAuthToken
- type NoopVerifier
- type Provider
- func (provider Provider) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string
- func (provider Provider) Client(ctx context.Context, t *oauth2.Token) *http.Client
- func (provider Provider) Exchange(ctx context.Context, code string) (*oauth2.Token, error)
- func (Provider) PreTokenClient() (*http.Client, error)
- type ScopeVerifier
Constants ¶
View Source
const ProviderName = "oauth"
Variables ¶
This section is empty.
Functions ¶
func NewScopeVerifier ¶
Types ¶
type GenericOAuthToken ¶
type GenericOAuthToken struct {
Scopes []string `json:"scope"`
}
type NoopVerifier ¶
type NoopVerifier struct{}
type Provider ¶
type Provider struct { verifier.Verifier Config ConfigOverride }
func NewProvider ¶
func NewProvider( genericOAuth *db.GenericOAuth, redirectURL string, ) Provider
func (Provider) AuthCodeURL ¶
func (provider Provider) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string
Click to show internal directories.
Click to hide internal directories.