-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Config to save requested claims #12
Conversation
Note this will break existing sessions. Not sure how much that matters... |
dialyzer passes. Which is somewhat amazing. I can't test act stuff, but hopefully I didn't break it (except for existing sessions). Everything else looks good to me. |
The problem with this approach is that cookies have size limit, and authentication cookies can hold authentication info of several sessions. This could be a problem when using the COOKIE backend (data stored in the cookie and not in a backend). This would be nice if we could configure which claims are saved, and which ones are not. |
This PR does allow specifying which claims you do/don't want to keep. Not sure I would ever need any more then this? But yes, if it supported a function as well as a list, I guess it could be more generic. |
There's also the alternative which consist in giving the opportunity to the user to to whatever he wants with the claims (and tokens) and the |
Feel free to take this PR and modify more in line of what you want. |
I've taken the second approach: in the https://github.com/tanguilp/plugoid/tree/conn_callback Feel free to test it and give me feedback. |
Thanks. Will test ASAP. I imagine this means the callback can put data in the default phoenix session, which would solve one of the problems we were predicting with the live view not having access to the required session details. Wondering if the special case code for subject is still required though. We might want to include it in the default session also, so that live views have access. Which would mean we get two copies. |
I am going to put this URL here so I don't have to keep finding it. Seems the appropriate place anyway: https://github.com/tanguilp/plugoid/compare/conn_callback |
So far, your branch seems to work fine. |
If you want to merge your branch, we can then close this PR. |
Will close and summarise in #7. |
Fixes #7