Documentation
¶
Index ¶
- Constants
- Variables
- func GenNewBusinessJWT(email string, permission string, secret string) (string, error)
- func GiveToken(token string, rw http.ResponseWriter, req *http.Request)
- func IsJWTValid(credential string) (string, string, bool)
- func Oauth() http.HandlerFunc
- func ParseUserPermissionJWT(j_token string, secret string) (string, error)
- func Remote_Verify_Middleware(h http.Handler) http.Handler
- func Signup()
- func X_Api_Key(r *http.Request) bool
- func X_Api_Key_Middleware(h http.Handler) http.Handler
- type LoginCred
- type OauthLoginFEResponse
- type OauthLoginRequest
- type OauthLoginResponse
- type OauthUserInfoResponse
- type RemoteVerification
- type RemoteVerificationConfig
- type Request
- type SecurityIpRange
- type SecurityResult
Constants ¶
View Source
const UIDKey string = "uID"
Variables ¶
View Source
var Login = LoginCred{}
View Source
var RemoteVerificationState = RemoteVerification{}
View Source
var SecurityMap = make(map[string]SecurityResult)
View Source
var StoredJWTToken string = ""
View Source
var X_Api_Key_Map = sync.Map{}
Functions ¶
func GenNewBusinessJWT ¶
func Oauth ¶
func Oauth() http.HandlerFunc
func ParseUserPermissionJWT ¶
Types ¶
type OauthLoginFEResponse ¶
type OauthLoginRequest ¶
type OauthLoginResponse ¶
type OauthUserInfoResponse ¶
type RemoteVerification ¶
type SecurityIpRange ¶
type SecurityResult ¶
Click to show internal directories.
Click to hide internal directories.