Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudJwtClaim ¶
type CloudJwtClaim struct { SubType string `json:"subType" yaml:"subType" bson:"subType"` Name string `json:"name" yaml:"name" bson:"name"` Email string `json:"email" yaml:"email" bson:"email"` EmailVerified string `json:"email_verified" yaml:"email_verified" bson:"email_verified"` jwt.RegisteredClaims // contains filtered or unexported fields }
func NewCloudJwtClaim ¶
func NewCloudJwtClaim(keyid, issuer, sub, name, email string) *CloudJwtClaim
func (*CloudJwtClaim) GetJWT ¶
func (p *CloudJwtClaim) GetJWT(privateKey *rsa.PrivateKey) (string, *util.Result)
type JwtClaim ¶
type JwtClaim struct { Name *string `json:"name,omitempty" yaml:"name,omitempty" bson:"name,omitempty"` UserID *string `json:"userId,omitempty" yaml:"userId,omitempty" bson:"userId,omitempty"` UserDirectory *string `json:"userDirectory,omitempty" yaml:"userDirectory,omitempty" bson:"userDirectory,omitempty"` Email *string `json:"email,omitempty" yaml:"email,omitempty" bson:"email,omitempty"` jwt.RegisteredClaims }
json keys are for configuration actually payload is still using userDirectory + userId
func (*JwtClaim) GetQlikClaims ¶
func (t *JwtClaim) GetQlikClaims() *jwt.MapClaims
Click to show internal directories.
Click to hide internal directories.