dvsecurity

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Security = "security"
)

Variables

View Source
var SecretKey = "6876jgj6876876hkh8989899"

Functions

func DecodeJwtBase64 added in v1.0.2

func DecodeJwtBase64(s string) (string, error)

func DecodeMainTokenPart added in v1.0.2

func DecodeMainTokenPart(s string) (string, error)

func EncodeJwtBase64 added in v1.0.2

func EncodeJwtBase64(s string) string

func GenerateHs256Jwt added in v1.0.2

func GenerateHs256Jwt(claims map[string]interface{}, key string, expired int64) string

func GetCurrentSeconds added in v1.0.2

func GetCurrentSeconds() int64

func GetRefreshToken added in v1.0.2

func GetRefreshToken(current int64, expired int64) string

func GetToken added in v1.0.2

func GetToken(current int64, expired int64) string

func LoginByRequestEndPointHandler added in v1.0.2

func LoginByRequestEndPointHandler(ctx *dvcontext.RequestContext) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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