-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert JWT amr to list if string #85
Convert JWT amr to list if string #85
Conversation
Note that I am not 100% sure if this is still an issue. If this has been fixed in Tunnistamo already, then this PR is probably redundant and should be closed. I go with the assumption that this is still a "feature" in Tunnistamo. |
Codecov Report
@@ Coverage Diff @@
## master #85 +/- ##
==========================================
+ Coverage 51.80% 51.94% +0.14%
==========================================
Files 30 30
Lines 1000 1003 +3
==========================================
+ Hits 518 521 +3
Misses 482 482
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
84e0706
to
848a621
Compare
fbb6644
to
c735af7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The end result looks good now. There are some unnecessary intermediate commits that don't need to be preserved. Perhaps squashing the three commits into one does the job.
Oh yeah, I apparently failed at amending commits 🤡 |
Apparently, this screws things up if drf-oidc-auth is below 1.0.0. drf-oidc-auth >=1.0.0 is required for Django 4, however. Bit of a workaround, but should work? Source: City-of-Helsinki#73 (comment)
c735af7
to
6574c54
Compare
As discussed here: #73
This converts
amr
to a list if it's a string.Apparently, Tunnistamo sends
amr
as a string, not a list. This screws things up ifdrf-oidc-auth
's version is >=1.0.0. However,drf-oidc-auth
>=1.0.0 is required for Django 4, so something needs to be done. I went with @nikomakela's suggestion.I suppose it's not a perfect solution, but it should do the job for the time being.