Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
TokenManager token.Manager
)
Functions ¶
func GenerateToken ¶
func GenerateToken(identityID string, identityUsername string, privateKey *rsa.PrivateKey) (string, error)
GenerateToken generates a JWT token and signs it using the given private key
func GenerateTokenObject ¶
func GenerateTokenObject(identityID string, identityUsername string, privateKey *rsa.PrivateKey) (*jwt.Token, error)
GenerateTokenObject generates a JWT token and signs it using the given private key
func NewManager ¶
NewManager returns a new token Manager for handling tokens
func PrivateKey ¶
func PrivateKey() *rsa.PrivateKey
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.