SecurityUtil

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentContext added in v0.0.3

func GetCurrentContext() *gin.Context

func GetCurrentTenantId

func GetCurrentTenantId(c *gin.Context) string

func GetCurrentUser

func GetCurrentUser(c *gin.Context) *SecurityModel.UserDetails

func GetCurrentUserId

func GetCurrentUserId(c *gin.Context) string

func GetToken

func GetToken(c *gin.Context) (string, error)

Types

type HeaderParams

type HeaderParams struct {
	Authorization string `header:"Authorization" binding:"required,min=20"`
}

Jump to

Keyboard shortcuts

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