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

omen

Member
Oct 16, 2014
14
0
21
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!