auth

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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