authservices

package
v0.0.0-...-c9f6891 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountAuth

func AccountAuth(idEmailNick string, secret string, mongoClient *mongo.Client) bool

func AccountPayload

func AccountPayload(idEmailNick string, mongoClient *mongo.Client) map[string]interface{}

func AccountToPayload

func AccountToPayload(account accounts.Account) map[string]interface{}

AccountToPayload get account payload for JWT tokens

func AuthWithUserPassFactory

func AuthWithUserPassFactory(mongoClient *mongo.Client) func(string, string) bool

func AuthenticatePayloadFactory

func AuthenticatePayloadFactory(mongoClient *mongo.Client, jwtMiddleware *jwt.JWTMiddleware) func(string) map[string]interface{}

func CreateAnonToken

func CreateAnonToken(jwtMiddleware *jwt.JWTMiddleware) string

func CreateUserToken

func CreateUserToken(payload *authmodels.LoginRequestPayload, jwtMiddleware *jwt.JWTMiddleware) (tokenString string, rerr *utils.RError)

func DeviceAuth

func DeviceAuth(deviceID string, secret string, mongoClient *mongo.Client) bool

func DevicePayload

func DevicePayload(deviceID string, mongoClient *mongo.Client) map[string]interface{}

func GetAccount

func GetAccount(prnEmailNick string, mongoClient *mongo.Client) (accounts.Account, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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