Documentation ¶
Index ¶
- Constants
- func SplitScopes(scopes string) []string
- type ClientCredentialsProvider
- func (c *ClientCredentialsProvider) Name() string
- func (c *ClientCredentialsProvider) OnCreate(ctx context.Context, userID string, providerSessionID string) error
- func (c *ClientCredentialsProvider) OnDelete(ctx context.Context, userID string, providerSessionID string) error
- func (c *ClientCredentialsProvider) TokenSource(ctx context.Context, token *oauth.Token) (oauth2.TokenSource, error)
- func (c *ClientCredentialsProvider) Type() string
- type Provider
- func (p *Provider) CalculateStateForRestrictedToken(restrictedToken string) string
- func (p *Provider) ExchangeAuthorizationCodeForToken(ctx context.Context, authorizationCode string) (*oauth.Token, error)
- func (p *Provider) GetAuthorizationCodeURLWithState(state string) string
- func (p *Provider) Name() string
- func (p *Provider) OnCreate(ctx context.Context, userID string, providerSessionID string) error
- func (p *Provider) OnDelete(ctx context.Context, userID string, providerSessionID string) error
- func (p *Provider) TokenSource(ctx context.Context, token *oauth.Token) (oauth2.TokenSource, error)
- func (p *Provider) Type() string
Constants ¶
View Source
const ClientCredentialsProviderType = "oauth_client_credentials"
View Source
const ProviderType = "oauth"
Variables ¶
This section is empty.
Functions ¶
func SplitScopes ¶
Types ¶
type ClientCredentialsProvider ¶ added in v1.24.0
type ClientCredentialsProvider struct {
// contains filtered or unexported fields
}
func NewClientCredentialsProvider ¶ added in v1.24.0
func NewClientCredentialsProvider(name string, configReporter config.Reporter) (*ClientCredentialsProvider, error)
func (*ClientCredentialsProvider) Name ¶ added in v1.24.0
func (c *ClientCredentialsProvider) Name() string
func (*ClientCredentialsProvider) TokenSource ¶ added in v1.24.0
func (c *ClientCredentialsProvider) TokenSource(ctx context.Context, token *oauth.Token) (oauth2.TokenSource, error)
func (*ClientCredentialsProvider) Type ¶ added in v1.24.0
func (c *ClientCredentialsProvider) Type() string
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶ added in v1.24.0
func (*Provider) CalculateStateForRestrictedToken ¶ added in v1.24.0
func (*Provider) ExchangeAuthorizationCodeForToken ¶ added in v1.24.0
func (*Provider) GetAuthorizationCodeURLWithState ¶ added in v1.24.0
func (*Provider) TokenSource ¶ added in v1.24.0
Click to show internal directories.
Click to hide internal directories.