handlers

package
v0.0.0-...-e4f806a Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivateSessionHandler

func ActivateSessionHandler(httpServer *httpserver.HTTPServer, model *session.AuthenticationModel, chc *cache.Cache, w http.ResponseWriter, r *http.Request)

func AuthenticateHandler

func AuthenticateHandler(httpServer *httpserver.HTTPServer, model *session.AuthenticationModel, chc *cache.Cache, w http.ResponseWriter, r *http.Request)

func AuthorizationHandler

func AuthorizationHandler(
	httpServer *httpserver.HTTPServer,
	authzModel *session.AuthorizationModel,
	authnModel *session.AuthenticationModel,
	oauth2jose *oauth2.OAuth2Jose,
	chc *cache.Cache,
	w http.ResponseWriter,
	r *http.Request,
	replacers *SignInTemplateReplacers,
) bool

func ExchangeHandler

func ExchangeHandler(
	httpServer *httpserver.HTTPServer,
	authzModel *session.AuthorizationModel,
	authnModel *session.AuthenticationModel,
	oauth2jose *oauth2.OAuth2Jose,
	chc *cache.Cache,
	w http.ResponseWriter,
	r *http.Request,
)

func GrantScopesHandler

func GrantScopesHandler(
	httpServer *httpserver.HTTPServer,
	authzModel *session.AuthorizationModel,
	authnModel *session.AuthenticationModel,
	chc *cache.Cache,
	w http.ResponseWriter,
	r *http.Request,
)

func IndexHandler

func IndexHandler(
	httpServer *httpserver.HTTPServer,
	authzModel *session.AuthorizationModel,
	authnModel *session.AuthenticationModel,
	oauth2jose *oauth2.OAuth2Jose,
	chc *cache.Cache,
	w http.ResponseWriter,
	r *http.Request,
)

func JWKSHandler

func JWKSHandler(oauth2jose *oauth2.OAuth2Jose) http.HandlerFunc

func RefreshTokenHandler

func RefreshTokenHandler(
	httpServer *httpserver.HTTPServer,
	authzModel *session.AuthorizationModel,
	authnModel *session.AuthenticationModel,
	oauth2jose *oauth2.OAuth2Jose,
	w http.ResponseWriter,
	r *http.Request,
)

func SetupIDGenerators

func SetupIDGenerators() error

Types

type SignInTemplateReplacers

type SignInTemplateReplacers struct {
	GrantNonce    string
	Scopes        string
	ClientName    string
	RequireSignIn bool
}

Jump to

Keyboard shortcuts

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