-
Notifications
You must be signed in to change notification settings - Fork 327
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
Support for ory hydra oauth2 #288
Comments
@salmanisd Assuming that they are OIDC compliant (and it would appear that they are), the only thing necessary to add to VP would be a A quick review of their docs makes it seem fairly straight forward. There would need to be a little work around retrieving and storing the data for custom claims. @salmanisd The existing VP providers should provided enough examples to get you 95% of the way there. Would you care to work on a PR to support ORY? |
I would be definitely interested. Let me first try with the default openid provider and see how far I can go with that. |
@salmanisd Thanks much! Lets keep this one open until ORY hydra support is implemented as part of your work or otherwise. |
Hi, I just wanted to note for the record that I tried Vouch today with an Ory Hydra installation, and it Just Worked with the native oidc provider configuration in Vouch! This was my config:
It even Just Worked with custom claims. I could ingest them as HTTP headers just like usual in Vouch (and the webapp that uses it) The only 'gotcha' was that last note. I was using an oAuth2.0 client that had another callback URL registered to it along with the Vouch one above, and I'm using the 'pairwise' subject identifier algorithm (which is not the default in Hydra) as per these notes: https://www.ory.sh/hydra/docs/advanced/#subject-identifier-algorithms Upon login, consent and redirection back to the Vouch callback, I got a HTTP 400 error in Vouch with an error message from Hydra "OAuth 2.0 Client has multiple redirect_uris but no sector_identifier_uri was set which is not allowed when performing using subject type pairwise. Please reconfigure the OAuth 2.0 client properly". This may not be a problem with Vouch as such, and no problem in my case, I just made a new oAuth2.0 client in Hydra with just the one callback (the Vouch URL) and it works perfectly. So I think the above config is fine for most Hydra setups, not sure Vouch needs to do anything else at the Go level? Would you like a PR simply for your |
@mig5 thanks for that note. I've gone ahead and added |
Hello,
I am using the ory hydra as oauth provider (https://www.ory.sh/hydra/docs/). While its oauth flow works fine with my nodejs apps,I want to integrate it with nginx.
I am guessing vouch-proxy is not going to work out of the box with it? Can anyone tell me what I can do to maybe add support for hydra?
The text was updated successfully, but these errors were encountered: