github

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MPL-2.0-no-copyleft-exception Imports: 16 Imported by: 0

Documentation

Index

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

type AuthServer struct {
	H *handler.H
}

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

func (as *AuthServer) GetOAuthURL(ctx context.Context, scopes *auth.Scopes) (*auth.String, error)

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.

Jump to

Keyboard shortcuts

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