jwt

package
v2.2.45 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJwk

func GetJwk(url string, httpClient *http.Client) (*jwk.Set, error)

Types

type JwtService

type JwtService struct {
	// contains filtered or unexported fields
}

func NewJwtService

func NewJwtService(jwkResourceUrl string, clock clock.Clock) (*JwtService, error)

func (*JwtService) GetJwtToken added in v2.2.2

func (j *JwtService) GetJwtToken(authHeader string) (*JwtStruct, error)

func (*JwtService) GetJwtTokenFromRequest added in v2.2.4

func (j *JwtService) GetJwtTokenFromRequest(req *http.Request) (*JwtStruct, error)

type JwtStruct

type JwtStruct struct {
	UserName       string        `json:"user_name"`
	Uxid           string        `json:"uxid"`
	SessionID      string        `json:"sessionId"`
	CustomerNumber string        `json:"customerNumber"`
	Locale         string        `json:"locale"`
	DeviceID       string        `json:"deviceId"`
	Authorities    []interface{} `json:"authorities"`
	ClientID       string        `json:"client_id"`
	Site           string        `json:"site"`
	Scope          []interface{} `json:"scope"`
	GrantType      string        `json:"grant_type"`
}

Jump to

Keyboard shortcuts

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