-
Notifications
You must be signed in to change notification settings - Fork 121
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
fix AppleBackend #427
fix AppleBackend #427
Conversation
@c00kiemon5ter Hi, I have a problem and I am not sure how to solve it so that it fits SATOSA logic. You wrote that a backend should not transform attributes. The problem here (apart from many others) is that "Sign in with Apple" is similar to OIDC, but not fully compliant. Instead of a In the current state, this Apple backend puts the
This works for Apple backend but fails for standard OIDC providers (e.g. Google), there is an uncaught exception in attribute mapping when it is trying to use the standard
I can imagine at least two possible solutions (both of them may be implemented):
What do you suggest? |
@c00kiemon5ter any thoughts on this? |
@c00kiemon5ter Hi, can you please merge this? |
@c00kiemon5ter Hi, is there anything blocking this PR? I am using it in production, it works. |
How did you end up with |
common parts are not duplicated
incorrect function was used for parsing json (load is for files, loads for strings) and the error was masked because of too broad except clause
when internal_attributes contain nested attribute but the actual value is not nested
b07f120
to
45c4aa1
Compare
OK, I have figured it out; thanks for the comment above. I have rebased on top of current master and updated the code with 2e3a782, adding new test cases and fixing the traversal of the internal data. |
Co-authored-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
common parts are not duplicated
All Submissions: