auth

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AuthorizationPath = "/authorization"
View Source
const RegistrationPath = "/registration"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationController

type AuthorizationController struct {
	// contains filtered or unexported fields
}

func NewAuthorizationController

func NewAuthorizationController(
	logger logger.Logger,
	builder builder.Auth,
	authenticator authenticator.Authenticator,
	responder response.Responder,
) *AuthorizationController

func (*AuthorizationController) AddRoute

func (c *AuthorizationController) AddRoute(router *mux.Router)

func (*AuthorizationController) GetAccessToken

func (c *AuthorizationController) GetAccessToken(w http.ResponseWriter, r *http.Request)

type RegistrationController

type RegistrationController struct {
	// contains filtered or unexported fields
}

func NewRegistrationController

func NewRegistrationController(
	logger logger.Logger,
	builder builder.User,
	service user.CRUD,
	response response.Responder,
) *RegistrationController

func (*RegistrationController) AddRoute

func (c *RegistrationController) AddRoute(router *mux.Router)

func (*RegistrationController) Registration

func (c *RegistrationController) Registration(w http.ResponseWriter, r *http.Request)

Registration - is an endpoint for create a new user.

Jump to

Keyboard shortcuts

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