ppat

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePPATToken

func CreatePPATToken(method string, reqUrl string, fbt string, uid string, payload interface{}) (req *http.Request, err error)

CreatePPATToken will return a http.Request encoded using the PPAT format

func VerifyPPATToken

func VerifyPPATToken(productionURL string, service string, masterpassword string, tokenHeader string, tokenBody string, hestiaAuthUser string, hestiaAuthPassword string, serviceSigningPrivKey string, hestiaPubKey string) (valid bool, payload []byte, uid string, err error)

VerifyPPATToken is a utility function to verify and decrypt a PPAT token (only must be used for external microservices, Hestia can verify itself)

Types

This section is empty.

Jump to

Keyboard shortcuts

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