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.
Click to show internal directories.
Click to hide internal directories.