oidc

package
v0.0.0-...-bb2e6d5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidRequest          = errors.New("invalid_request")
	ErrInvalidScope            = errors.New("invalid_scope")
	ErrUnsupportedResponseType = errors.New("unsupported_response_type")
	ErrUnauthorizedClient      = errors.New("unauthorized_client")
	ErrConsentRequired         = errors.New("consent_required")
)

OAuth 2.0 Authorization Error Responses defined by RFC6749 or OIDC Authentication Error Responses.

View Source
var (
	ErrInvalidClient        = errors.New("invalid_client")
	ErrInvalidGrant         = errors.New("invalid_grant")
	ErrUnsupportedGrantType = errors.New("unsupported_grant_type")
)

OAuth 2.0 Token Error Responses defined by RFC6749.

View Source
var (
	ErrInvalidClientID    = errors.New("invalid_client_id")
	ErrInvalidRedirectURI = errors.New("invalid_redirect_uri")
)

Self defined error.

Functions

func NewServiceHandler

func NewServiceHandler(cfg *config.Config) (string, http.Handler)

NewServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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