github

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: MPL-2.0-no-copyleft-exception Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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