[SOLVED] OpenID redirect failed. Validation error: unexpected issuer URI

omen

Renowned Member
Oct 16, 2014
14
0
66
My workplace has used CAS for web SSO for many, many years now. In they last couple years they added OIDC, but they added the discovery URL down a couple levels from the top: /cas/oidc/.well-known/openid-configuration. I put https://cas.ucdavis.edu/cas/oidc in for the issuer URL, but I get the error below:
Code:
OpenID redirect failed.
Validation error: unexpected issuer URI `https://cas.ucdavis.edu/` (expected `https://cas.ucdavis.edu/cas/oidc`) (500)

If I use pretty much anything else I get a HTTP status code 404. Our authentication expert is on vacation for a week, so I thought I would check here first. Does anyone know if this is a mis-configuration on my end, or does Proxmox require the discovery to live at the root of the web server?

Thank you,
Omen
 
Here it is:
Code:
root@proxmox2:/usr/share/perl5# grep issuer-url /etc/pve/domains.cfg
    issuer-url https://cas.ucdavis.edu/cas/oidc
 
CAS is a centrally run service and I am just one user of hundreds, so I really doubt it. Also, if they changed it, it would likely break other existing users of the service.

Our entire response is actually publicly available (https://cas.ucdavis.edu/cas/oidc/.well-known/openid-configuration) and I see that "issuer":"https://cas.ucdavis.edu" is in there. Is that likely the place that is breaking your code? Is there a reason you require the full URI, not just the domain to match?
 
Thanks for the pointer, and the comment to that bug. I will follow along and see what they say. I will also check with my CAS administrators when they are back from vacation to see what they say.
 
Thank you for the pointer to the spec. That will help in my discussion with the service owners. I am hoping they can just make /.well-known/openid-configuration work, which I think should not break any other users of the service, and should make it work with Proxmox.
 
Thank you for the pointer to the spec. That will help in my discussion with the service owners. I am hoping they can just make /.well-known/openid-configuration work, which I think should not break any other users of the service, and should make it work with Proxmox.
Yes, that would be a reasonable fix.
 
I contacted the service owner, and they are changing the service to meet the spec. I tested on their dev instance and it works great, so problem solved. Thank you for your help.