auth

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetAuthToken = jwt.GetAuthToken
View Source
var GetParsedToken = jwt.GetParsedToken
View Source
var Parse = jwt.Parse

Functions

This section is empty.

Types

type KeycloakClaims

type KeycloakClaims struct {
	RealmAccess RealmAccess `json:"realm_access"`
	gojwt.StandardClaims
}

type RealmAccess

type RealmAccess = map[string][]string

type Token

type Token = jwt.Token

func CreateToken

func CreateToken(issuer string, userId string) (token Token, err error)

func CreateTokenWithRoles

func CreateTokenWithRoles(issuer string, userId string, roles []string) (token Token, err error)

Jump to

Keyboard shortcuts

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