mvt

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 9 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMVTToken

func CreateMVTToken(method string, reqUrl string, service string, masterPassword string, payload interface{}, basicUser string, basicPassword string, signingKey string) (req *http.Request, err error)

CreateMVTToken will return a http.Request encoded using the MVT format

func VerifyMVTToken

func VerifyMVTToken(tokenHeader string, tokenBody string, servicePubKey string, masterPassword string) (valid bool, payload []byte)

VerifyMVTToken is a utility function to verify and decrypt a MVT tokens

func VerifyRequest

func VerifyRequest(c *gin.Context) (payload []byte, serviceStr string, err error)

VerifyRequest is a wrapper around VerifyMRTToken to get information correctly from the GIN context

Types

This section is empty.

Jump to

Keyboard shortcuts

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