Documentation ¶
Index ¶
- Variables
- type AuthServer
- func (as *AuthServer) Capabilities(ctx context.Context, e *empty.Empty) (*auth.StringList, error)
- func (as *AuthServer) GetOAuthURL(ctx context.Context, scopes *auth.Scopes) (*auth.String, error)
- func (as *AuthServer) OAuthChallenge(ctx context.Context, ocr *auth.OAuthChallengeRequest) (*auth.OAuthInfo, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRedirect = errors.New("redirection")
ErrRedirect indicates that the error intends to redirect the user to the proper spot.
Functions ¶
This section is empty.
Types ¶
type AuthServer ¶
AuthServer is the handle/entrypoint for all github-based authsvc implementation.
func (*AuthServer) Capabilities ¶
func (as *AuthServer) Capabilities(ctx context.Context, e *empty.Empty) (*auth.StringList, error)
Capabilities denotes what capabilities the auth server can manage.
func (*AuthServer) GetOAuthURL ¶
GetOAuthURL returns the url to redirect the user to.
func (*AuthServer) OAuthChallenge ¶
func (as *AuthServer) OAuthChallenge(ctx context.Context, ocr *auth.OAuthChallengeRequest) (*auth.OAuthInfo, error)
OAuthChallenge is a remote endpoint for performing the final steps of the oauth handshake.
Click to show internal directories.
Click to hide internal directories.