controllers

package
v0.0.0-...-7ffcf3d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePasswords

func ComparePasswords(userPassword string, providedPassword string) (bool, string)

func CreateProvider

func CreateProvider(c echo.Context) error

func DeleteAuthCookie

func DeleteAuthCookie(c echo.Context) error

func DeleteProvider

func DeleteProvider(c echo.Context) error

func GetAllProviders

func GetAllProviders(c echo.Context) error

func GetProvider

func GetProvider(c echo.Context) error

func GetProviderByName

func GetProviderByName(c echo.Context) error

Search provider by name and return username

func GetProviderFromToken

func GetProviderFromToken(c echo.Context) error

func HashPassword

func HashPassword(password string) string

func ReadAuthCookie

func ReadAuthCookie(c echo.Context) error

func SeedProviders

func SeedProviders(c echo.Context) error

func VerifyUser

func VerifyUser(c echo.Context) error

Types

type Claims

type Claims struct {
	Username string `json:"username"`
	jwt.RegisteredClaims
}

Jump to

Keyboard shortcuts

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