I am attempting to get Open ID Connect working with Azure AD. I am following both the OOD Open ID Connect and Open OnDemand - Leo's Notes documentation. All I get is “Your email address and/or password do not match”. There is nothing in the apache logs and no other logging that I can find for troubleshooting. The response is very quick like the host is not even getting to Azure. The host is behind a proxy but all http and https traffic is proxied. Do I need another port opened to connect with Azure?
I am not 100% sure on the oidc_remote_user_claim or the oidc_scope as I haven’t been able to find a lot documentation and the terms are vague in the Azure .well-known/openid-configuration.
Any help appreciated.
host was working with local auth…
relevant portion of the ood_portal.yml
Sorry about the trouble. Looking at the config I don’t see anything wrong except (and I doubt this is the issue) the line:
oidc_uri: "/oidc/"
Maybe try to remove that trailing slash:
oidc_uri: "/oidc"
But if that doesn’t work we will need to do a deeper dive.
It would be helpful to see what things look like when the request leaves. To do that the dev tools can maybe gives us some clues.
If you would, try following these steps:
press F12 in the browser (assuming you are on chrome or firefox).
From within the dev console select the “Network” tab.
Now try to go through the authentication with this tab open and see what the browser is returning for the status codes and you can click on the file to examine the headers and response.
If any of that gets confusing please let me know and I can try to post some screen shots to help guide you.
Otherwise, if you could post what you see in that tab when making the request that would be a big help. Thanks!
I made the change to the oidc_uri as you suggested with no change to the behavior or to the dev console output. I’m not seeing anything to confirm that my browser is attempting to connect to Azure.
POST
https://openondemand.ads-test.otago.ac.nz:5554/auth/local?req=zt5skr5wytpxjx2wd24rjre5m
Response headers
HTTP/2 200 OK
content-type: text/html; charset=utf-8
content-length: 2457
date: Tue, 28 Jun 2022 23:48:40 GMT
X-Firefox-Spdy: h2
I have been able to get passed this issue. Dex was installed and was taking precedence over OIDC. Once I uninstalled Ondemand Dex I was able to get mod_auth_openidc calling to Azure and authenticating.