provider

package
v1.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2020 License: BSD-2-Clause Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const ClientCredentialsProviderType = "oauth_client_credentials"
View Source
const ProviderType = "oauth"

Variables

This section is empty.

Functions

func SplitScopes

func SplitScopes(scopes string) []string

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 (*ClientCredentialsProvider) OnCreate added in v1.24.0

func (c *ClientCredentialsProvider) OnCreate(ctx context.Context, userID string, providerSessionID string) error

func (*ClientCredentialsProvider) OnDelete added in v1.24.0

func (c *ClientCredentialsProvider) OnDelete(ctx context.Context, userID string, providerSessionID string) error

func (*ClientCredentialsProvider) TokenSource added in v1.24.0

func (*ClientCredentialsProvider) Type added in v1.24.0

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider added in v1.24.0

func NewProvider(name string, configReporter config.Reporter) (*Provider, error)

func (*Provider) CalculateStateForRestrictedToken added in v1.24.0

func (p *Provider) CalculateStateForRestrictedToken(restrictedToken string) string

func (*Provider) ExchangeAuthorizationCodeForToken added in v1.24.0

func (p *Provider) ExchangeAuthorizationCodeForToken(ctx context.Context, authorizationCode string) (*oauth.Token, error)

func (*Provider) GetAuthorizationCodeURLWithState added in v1.24.0

func (p *Provider) GetAuthorizationCodeURLWithState(state string) string

func (*Provider) Name

func (p *Provider) Name() string

func (*Provider) OnCreate

func (p *Provider) OnCreate(ctx context.Context, userID string, providerSessionID string) error

func (*Provider) OnDelete

func (p *Provider) OnDelete(ctx context.Context, userID string, providerSessionID string) error

func (*Provider) TokenSource added in v1.24.0

func (p *Provider) TokenSource(ctx context.Context, token *oauth.Token) (oauth2.TokenSource, error)

func (*Provider) Type

func (p *Provider) Type() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL