Oauth2-proxy: Not working with Rundeck?

Created on 18 Dec 2019  路  7Comments  路  Source: oauth2-proxy/oauth2-proxy

Hi,

I'm trying to setup oauth2_proxy in front of Rundeck, as described on their documentation you can use the preauthentication https://docs.rundeck.com/docs/administration/security/authentication.html#preauthenticated-mode-using-headers

Login through Okta is working as expected and in the oauth2_proxy logs i can see i'm logged in. But for some reason Rundeck is redirecting me to the /user/login form again.
Anyone here has any expierence with Rundeck + oauth2_proxy?

Stale help wanted question

Most helpful comment

I'm currently working through this at the moment too. Samples out there just do not work. Will drop notes back here as I figure it out.

All 7 comments

I'm currently working through this at the moment too. Samples out there just do not work. Will drop notes back here as I figure it out.

This issue has been inactive for 60 days. If the issue is still relevant please comment to re-activate the issue. If no action is taken within 7 days, the issue will be marked closed.

hello @dcarrion87 , had any luck with your integration?

I think OP config might be wrong. Hard to know from the original message.
Anyway, what I am experiencing is, authentication works fine BUT roles are not passed correctly.

Therefore Rundeck gives you this error:
image

I believe this is a Rundeck bug and not a oauth2_proxy one.

Rundeck works fine if you pass correct headers. I'd suggest putting httpbin behind the oauth2-proxy instead of rundeck, then examining headers.

This issue has been inactive for 60 days. If the issue is still relevant please comment to re-activate the issue. If no action is taken within 7 days, the issue will be marked closed.

Was this page helpful?
0 / 5 - 0 ratings