apiauth

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIBaiscAuth

func APIBaiscAuth(appid, appkey string) bhojpur.FilterFunc

APIBaiscAuth calls APIBasicAuth for previous callers

func APIBasicAuth

func APIBasicAuth(appid, appkey string) bhojpur.FilterFunc

APIBasicAuth use the basic appid/appkey as the AppIdToAppSecret

func APISecretAuth

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

APISecretAuth use AppIdToAppSecret verify and

func Signature

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

Signature used to generate signature with the appsecret/method/params/RequestURI

Types

type AppIDToAppSecret

type AppIDToAppSecret apiauth.AppIDToAppSecret

AppIDToAppSecret is used to get appsecret throw appid

Jump to

Keyboard shortcuts

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