authservice

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOwnerID

func GetOwnerID(c echo.Context) (prnx.Prn, error)

GetOwnerID get user id from jwt of cookie

func GetUser

func GetUser(c echo.Context) (*authmodels.AccountToken, error)

GetUser get user from jwt of cookie

Types

type AccountToken

type AccountToken struct {
	jwt.StandardClaims `json:",inline" bson:",inline"`

	Nick   string                 `json:"nick"`
	Scopes string                 `json:"scopes"`
	Prn    prnx.Prn               `json:"prn"`
	Roles  authmodels.RolesType   `json:"roles"`
	Type   authmodels.AccountType `json:"type"`
}

Jump to

Keyboard shortcuts

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