models

package
v0.0.0-...-0eda7c9 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAccessJWT

func GenerateAccessJWT(clientId string, userId string, authCode string, grantType string) (*structs.JWTResourceResponse, error)

func GenerateAuthCode

func GenerateAuthCode(clientId string, userId string, scope string) (*structs.AuthorizedResponse, error)

func GenerateClientSecret

func GenerateClientSecret(appName string) (*structs.RegisteredResponse, error)

func GenerateWebAuthJWT

func GenerateWebAuthJWT(clientId string, deviceId string, grantType string) (*structs.JWTWebResponse, error)

func VerifyAuthCode

func VerifyAuthCode(clientId string, userId string, authCode string) (bool, error)

func VerifyAuthJWT

func VerifyAuthJWT(clientId string, deviceId string, authToken string) (bool, error)

func VerifyClient

func VerifyClient(clientId string, clientSecret string) (bool, error)

func VerifyRefreshToken

func VerifyRefreshToken(clientId string, userId string, refToken string) (bool, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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