This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2021-09-08 18:04:56 +00:00
|
|
|
package application
|
|
|
|
|
|
|
|
type ProxyClaims struct {
|
2022-01-30 20:35:08 +00:00
|
|
|
UserAttributes map[string]interface{} `json:"user_attributes"`
|
|
|
|
BackendOverride string `json:"backend_override"`
|
2022-07-30 18:29:23 +00:00
|
|
|
IsSuperuser bool `json:"is_superuser"`
|
2021-09-08 18:04:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Claims struct {
|
2022-02-03 16:58:38 +00:00
|
|
|
Sub string `json:"sub"`
|
|
|
|
Exp int `json:"exp"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
Verified bool `json:"email_verified"`
|
|
|
|
Proxy *ProxyClaims `json:"ak_proxy"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
PreferredUsername string `json:"preferred_username"`
|
|
|
|
Groups []string `json:"groups"`
|
2021-12-12 16:58:19 +00:00
|
|
|
|
|
|
|
RawToken string
|
2021-09-08 18:04:56 +00:00
|
|
|
}
|