mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-12-22 08:02:28 +00:00
refactor: only accept claims following the OIDC spec
This commit is contained in:
@@ -7,3 +7,14 @@ var TinyauthLabels = []string{
|
||||
"tinyauth.allowed",
|
||||
"tinyauth.headers",
|
||||
}
|
||||
|
||||
// Claims are the OIDC supported claims
|
||||
type Claims struct {
|
||||
Name string `json:"name"`
|
||||
FamilyName string `json:"family_name"`
|
||||
GivenName string `json:"given_name"`
|
||||
MiddleName string `json:"middle_name"`
|
||||
Nickname string `json:"nickname"`
|
||||
Picture string `json:"picture"`
|
||||
Email string `json:"email"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user