security

package
v0.0.0-...-1535c92 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJWTForUser

func CreateJWTForUser(c models.Customer) (string, error)

CreateJWTForUser perform login, return token

func CustomJWTMiddleware

func CustomJWTMiddleware(next echo.HandlerFunc) echo.HandlerFunc

CustomJWTMiddleware custom JWT validation middleware

func ReadPrivateKey

func ReadPrivateKey() []byte

ReadPrivateKey get contents of private key

func ReadPublicKey

func ReadPublicKey() []byte

ReadPublicKey get contents of public key

Types

This section is empty.

Jump to

Keyboard shortcuts

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