Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTokenHS256 ¶
func GenerateTokenHS256(base64ClientSecret string, jwtClaims jwt.Claims) (signedToken string, err error)
GenerateTokenHS256 generates an HS256 token containing the given claims, the returns the token signed with the given client secret. Used with single keys (ie. client secret)
func GenerateTokenRSA256 ¶
GenerateTokenRSA256 generates an RSA256 token containing the given claims, the returns the token signed with the given PEM private key. Used with public - private keys.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.