apiauth

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIBasicAuth

func APIBasicAuth(appid, appkey string) websvr.FilterFunc

APIBasicAuth uses the basic appid/appkey as the AppIdToAppSecret

func APISecretAuth

func APISecretAuth(f AppIDToAppSecret, timeout int) websvr.FilterFunc

APISecretAuth uses AppIdToAppSecret verify and

func Signature

func Signature(appsecret, method string, params url.Values, RequestURL string) (result string)

Signature generates signature with appsecret/method/params/RequestURI

Types

type AppIDToAppSecret

type AppIDToAppSecret func(string) string

AppIDToAppSecret gets appsecret through appid

Jump to

Keyboard shortcuts

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