authapi

package
v0.0.0-...-10bc8b7 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize

func Authorize(c echo.Context) error

Authorize process login form

func CloseSession

func CloseSession(c echo.Context) error

CloseSession Remove session variables a logout user

func Load

func Load(e *echo.Group) *echo.Group

Load Create new auth service

func LoginPage

func LoginPage(c echo.Context) error

LoginPage login page

func RegisterPage

func RegisterPage(c echo.Context) error

RegisterPage login page

Types

type LoginPayloadResponse

type LoginPayloadResponse struct{}

LoginPayloadResponse login need data for login.html

type OAuthService

type OAuthService struct {
	Fqdn string `json:"fdqn"`
	URL  string `json:"url"`
}

OAuthService service login URL

type ReqPayload

type ReqPayload struct {
	User     string `json:"username" form:"username" validate:"required"`
	Password string `json:"password" form:"password" validate:"required"`
}

ReqPayload payload for authentication request

Jump to

Keyboard shortcuts

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