Documentation
¶
Index ¶
- type FacebookProvider
- func (f *FacebookProvider) AuthCodeURL(state string) string
- func (f *FacebookProvider) ClientID() string
- func (f *FacebookProvider) Exchange(ctx context.Context, code string) (*oauth2.Token, error)
- func (f *FacebookProvider) Name() string
- func (f *FacebookProvider) String() string
- func (f *FacebookProvider) User() (string, error)
- type GithubProvider
- func (g *GithubProvider) AuthCodeURL(state string) string
- func (g *GithubProvider) ClientID() string
- func (g *GithubProvider) Exchange(ctx context.Context, code string) (*oauth2.Token, error)
- func (g *GithubProvider) Name() string
- func (g *GithubProvider) String() string
- func (g *GithubProvider) User() (string, error)
- type GoogleProvider
- func (g *GoogleProvider) AuthCodeURL(state string) string
- func (g *GoogleProvider) ClientID() string
- func (g *GoogleProvider) Exchange(ctx context.Context, code string) (*oauth2.Token, error)
- func (g *GoogleProvider) Name() string
- func (g *GoogleProvider) String() string
- func (g *GoogleProvider) User() (string, error)
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FacebookProvider ¶
type FacebookProvider struct {
// contains filtered or unexported fields
}
func (*FacebookProvider) AuthCodeURL ¶
func (f *FacebookProvider) AuthCodeURL(state string) string
func (*FacebookProvider) ClientID ¶
func (f *FacebookProvider) ClientID() string
func (*FacebookProvider) Name ¶
func (f *FacebookProvider) Name() string
func (*FacebookProvider) String ¶
func (f *FacebookProvider) String() string
func (*FacebookProvider) User ¶
func (f *FacebookProvider) User() (string, error)
type GithubProvider ¶
type GithubProvider struct {
// contains filtered or unexported fields
}
func (*GithubProvider) AuthCodeURL ¶
func (g *GithubProvider) AuthCodeURL(state string) string
func (*GithubProvider) ClientID ¶
func (g *GithubProvider) ClientID() string
func (*GithubProvider) Name ¶
func (g *GithubProvider) Name() string
func (*GithubProvider) String ¶
func (g *GithubProvider) String() string
func (*GithubProvider) User ¶
func (g *GithubProvider) User() (string, error)
type GoogleProvider ¶
type GoogleProvider struct {
// contains filtered or unexported fields
}
func (*GoogleProvider) AuthCodeURL ¶
func (g *GoogleProvider) AuthCodeURL(state string) string
func (*GoogleProvider) ClientID ¶
func (g *GoogleProvider) ClientID() string
func (*GoogleProvider) Name ¶
func (g *GoogleProvider) Name() string
func (*GoogleProvider) String ¶
func (g *GoogleProvider) String() string
func (*GoogleProvider) User ¶
func (g *GoogleProvider) User() (string, error)
type Provider ¶
type Provider interface { AuthCodeURL(state string) string User() (string, error) Exchange(ctx context.Context, code string) (*oauth2.Token, error) String() string Name() string ClientID() string }
Provider is the interface every OAuth provider has to fulfill for being used within jwt-proxy
func NewFacebook ¶
Click to show internal directories.
Click to hide internal directories.