Skip to content

Commit

Permalink
fix for freja eid birthdate claim
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlundberg committed Sep 4, 2024
1 parent 2c8aa2e commit 4db0ee3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/eduid/webapp/freja_eid/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class FrejaEIDDocumentUserInfo(UserInfoBase):
personal_identity_number: Optional[str] = Field(
alias="https:/frejaeid.com/oidc/claims/personalIdentityNumber", default=None
)
date_of_birth: date = Field(alias="https://frejaeid.com/oidc/claims/birthdate")
date_of_birth: date = Field(alias="birthdate")
registration_level: FrejaRegistrationLevel = Field(alias="https://frejaeid.com/oidc/claims/registrationLevel")
user_id: str = Field(alias="https://frejaeid.com/oidc/claims/relyingPartyUserId")
transaction_id: str = Field(alias="https://frejaeid.com/oidc/claims/transactionReference")
Expand Down
2 changes: 2 additions & 0 deletions src/eduid/webapp/freja_eid/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class FrejaEIDClientConfig(AuthlibClientConfig):
"https://frejaeid.com/oidc/scopes/document",
"https://frejaeid.com/oidc/scopes/registrationLevel",
"https://frejaeid.com/oidc/scopes/relyingPartyUserId",
"https://frejaeid.com/oidc/scopes/transactionReference",
"https://frejaeid.com/oidc/scopes/birthdate",
]
)
claims_request: dict[str, Union[None, dict[str, bool]]] = Field(default={})
Expand Down

0 comments on commit 4db0ee3

Please sign in to comment.