Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.