Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISClaims ¶
type ISClaims struct { *jwt.StandardClaims // jwt.StandardClaims ClientID string `json:"client_id,omitempty"` // Subject is also the user Id AuthorizedTime int `json:"auth_time,omitempty"` IdentityProvider string `json:"idp,omitempty"` SecurityStamp string `json:"AspNet.Identity.SecurityStamp,omitempty"` Role []string `json:"role"` PreferredUsername string `json:"preferred_username,omitempty"` Name string `json:"name,omitempty"` Email string `json:"email,omitempty"` EmailVerified bool `json:"email_verified,omitempty"` Phone string `json:"phone_number,omitempty"` PhoneVerified bool `json:"phone_number_verified,omitempty"` Scope []string `json:"scope,omitempty"` AuthenticationMethod []string `json:"amr,omitempty"` SchoolID string `json:"school_id,omitempty"` }
ISClaims is the basic structure of a jwt from identityserver4
type Metadata ¶
type Metadata struct { Message string `json:"message"` Errors []Error `json:"errors"` Success bool `json:"success"` Cursor Cursor `json:"cursor"` }
Metadata is basic data about the data being returned from the api
type NatsData ¶
type NatsData struct { Data interface{} `json:"data"` Metadata *Metadata `json:"metadata"` }
NatsData is a child to NatsResponse that holds the data and metadata
type NatsResponse ¶
NatsResponse is the parent response
type RolesRequest ¶
RolesRequest is used in the request to the identity server for authorization
Click to show internal directories.
Click to hide internal directories.