Documentation ¶
Index ¶
- Variables
- func BuildAuthHeader(appConfig *config.AppConfig, expiredToken bool, signingKeyFile string, ...) string
- func GenerateDefaultSignedToken(appConfig *config.AppConfig) string
- func GenerateSignedToken(appConfig *config.AppConfig, expiredToken bool, signingKeyFile string, ...) string
- func GetSigningKey(signingKeyFile string, rsaKeyType string) *jose.JSONWebKey
- type Claim
Constants ¶
This section is empty.
Variables ¶
View Source
var HmacSampleSecret []byte
Functions ¶
func BuildAuthHeader ¶
func BuildAuthHeader(appConfig *config.AppConfig, expiredToken bool, signingKeyFile string, signingKeyType string, c Claim) string
BuildAuthHeader builds the authorization header with a JWT bearer token
func GenerateSignedToken ¶
func GenerateSignedToken(appConfig *config.AppConfig, expiredToken bool, signingKeyFile string, signingKeyType string, c Claim) string
GenerateSignedToken generates and sign a jwt token
func GetSigningKey ¶
GetSigningKey converts rsaPrivateKey into a private/public JSONWebKey
Types ¶
Click to show internal directories.
Click to hide internal directories.