Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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"` }
type MockService ¶ added in v2.2.67
type MockService struct {
Jwt JwtStruct
}
func (*MockService) GetJwtToken ¶ added in v2.2.67
func (m *MockService) GetJwtToken(authHeader string) (*JwtStruct, error)
func (*MockService) GetJwtTokenFromRequest ¶ added in v2.2.67
func (m *MockService) GetJwtTokenFromRequest(req *http.Request) (*JwtStruct, error)
Click to show internal directories.
Click to hide internal directories.