Commit 4d16468
authored
Fix GitLab OpenID instance as it breaks with latest pydantic (#143)
Latest versions of Pydantic reject objects that are not created with their values aligned to their hints.
This results in GitLab SSO breaking when trying to form the OpenID object, as the response from GitLab comes with an int for the 'id' field while OpenID pydantic model expects a string.
Fix is simple and easy with just casting the field to string when creating the object in openid_from_response of GitlabSSO class.1 parent f53bc71 commit 4d16468
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
0 commit comments