-
Notifications
You must be signed in to change notification settings - Fork 23
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
Adding 'state' parameter into the OIDC flow #3367
Comments
Hey, There are some OIDC features that we probably should support in the long run, but so far they have not been necessary. This If you want to try this yourself, have a look at
I guess it could be a configuration option like Let me know if you want to try it yourself and if not I'll do some experiment. |
I can do a super simple "add state to the initial flow URL" myself - just locally for my own deployment - so that will fix my immediate issue and get my install unblocked. If we can get a proper implementation on the radar for a release some point next year, then would be grateful if you guys could implement it (rather than me poking around in your OIDC implementation) |
@andrewpatto I implemented an initial version of this, if you want to check it out. I tested it a bit synthetically, but I haven't tested with a real IdP yet so there may be some gotchas. I'll get back to it in January. |
Just confirming here in the issue that the feature in the PR is working as intended. |
Australia has a national identity service for research institutes (AAF) that we would like to tie into REMS as an OIDC login flow.
Unfortunately (though possibly sensibly) - they require the use of the
state
parameter in the OIDC flow as part of their security posture (CSRF etc). I realise that is more than the OIDC spec requires - but I don't feel I can argue too hard with them about it.I notice that the use of state has been considered in REMS!
rems/src/clj/rems/auth/oidc.clj
Line 26 in b1cd1e3
Was wondering if we could put in a request for this to be completed. I can possibly have a crack at it if there are no objections?
a) at the very minimum - I can produce a
state
parameter for the OIDC flow but not actually confirm it later (this would probably fix my immediate needs)b) complete the implementation of actual
state
checking - would require storing the state value somewhere in a db table (or cache?) - and which point I'm less confident..The text was updated successfully, but these errors were encountered: