-
|
I had a Debian 12 Bookworm server which used mod_auth_openidc to authenticate users against Entra ID, and a group file to restrict access to a few users. I upgraded to Debian 13 Trixie and now the browser gets an immediate 401 Unauthorized error - it never redirects to Entra ID. This happens whether I've got an existing Entra ID session, or if I'm in a new private browser window. It didn't work with the Require group changed to Require user. However, it did work correctly with Require valid-user, showing the correct username in access.log. The auth-related configuration from /etc/apache2/sites-enabled/hostname.mydomain-ssl.conf is: All of the configuration in /etc/apache2/conf-enabled/auth_openidc.conf is: Apache is 2.4.66-1~deb13u1, and libapache2-mod-auth-openidc was 2.4.17-1 from Debian and then upgraded to libapache2-mod-auth-openidc_2.4.19.1-1.trixie_amd64.deb from this repository. I've attached the 2.4.19.1 debug log for the valid-user option - I closed the browser after it was redirected to Entra ID. The debug log for the user option is identical (except for ephemeral data like port numbers, cookie IDs, etc) up to the I tried the following, but still got 401 Unauthorized rather than the login page:
I've not found any other discussions with this exact problem - the nearest had the same symptoms but with Require claim, and were fixed in 2.4.17.2. Can you suggest what's causing this problem, or anything else can I do to debug it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
I suspect a regression with |
Beta Was this translation helpful? Give feedback.
I suspect a regression with
OIDCProviderAuthRequestMethod POST, can you try removing this primitive for test purposes?