auth

package
v0.0.0-...-fbe9a17 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TokenEndpoint is used by the client to exchange
	// an authorization grant for an access token, typically
	// with client authentication.
	TokenEndpoint = "/token"

	// AuthorizationEndpoint is used by the client to obtain
	// authorization from the resource owner via user-agent
	// redirection.
	AuthorizationEndpoint = "/authorize"

	// LoginEndpoint is the endpoint for authenticating the user
	// with the authentication server.
	LoginEndpoint = "/login"

	// RegisterEndpoint is the endpoint for registering new users
	RegisterEndpoint = "/register"
)

Variables

This section is empty.

Functions

func SetupRoutes

func SetupRoutes(
	r *mux.Router,
	db database.Database,
)

SetupRoutes configures routing for the given mux.

Types

type Provider

type Provider interface {
}

type Validator

type Validator interface {
	ValidateAuthorizationCodeRequest(r *http.Request) (*model.AuthorizationRequest, *authorizationRequestError)
}

Validator handles validation of a request

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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