Documentation
¶
Overview ¶
Package github implements OAuth2 based authentication for github
Index ¶
- Constants
- type Provider
- func (p *Provider) Authenticate(ctx context.Context, code string) (*sessions.State, error)
- func (p *Provider) GetSignInURL(state string) string
- func (p *Provider) LogOut() (*url.URL, error)
- func (p *Provider) Refresh(ctx context.Context, s *sessions.State) (*sessions.State, error)
- func (p *Provider) Revoke(ctx context.Context, token *oauth2.Token) error
Constants ¶
View Source
const Name = "github"
Name identifies the GitHub identity provider
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
Provider is an implementation of the OAuth Provider.
func (*Provider) Authenticate ¶
Authenticate creates an identity session with github from a authorization code, and follows up call to the user and user group endpoint with the
func (*Provider) GetSignInURL ¶
GetSignInURL returns a URL to OAuth 2.0 provider's consent page that asks for permissions for the required scopes explicitly.
Click to show internal directories.
Click to hide internal directories.