docker icon indicating copy to clipboard operation
docker copied to clipboard

403 errors after using AAD authentication

Open He11oW-10 opened this issue 2 years ago • 5 comments

Hello, I have created an azure web app for container with phpmyadmin:latest. There were "access denied" errors once AAD authentication was enabled for the web app. image

  1. I checked HAR traces. The AAD authentication was completed successfully. 403 errors were from https://<web_app_name>.azurewebsites.net/index.php?route=/ though correct credentials in payload.

  2. configured PMA_USER and PMA_PASSWORD. I could see the databases, but 403 errors persist.

error

Could you please suggest how to mitigate? Is there any debug logging we can use? Thanks.

He11oW-10 avatar Jul 25 '23 08:07 He11oW-10

Hi! Can you try to disable authentication to see what really causes the 403 error?

williamdes avatar Jul 26 '23 07:07 williamdes

Hi @williamdes , thanks for your help! The app could work correctly if I disable authentication.

image

test2

He11oW-10 avatar Jul 27 '23 02:07 He11oW-10

The app could work correctly if I disable authentication.

The Microsoft one, right ? So there is something in their ruleset that does not work correctly ?

williamdes avatar Jul 27 '23 07:07 williamdes

Hi @He11oW-10, it bit us al well, it's directly related to https://github.com/phpmyadmin/phpmyadmin/issues/17240.

abij avatar Mar 11 '24 15:03 abij

The 5.2 snapshot should be updated now, and the Docker version too. See: (phpMyAdmin 5.2+snapshot) also available as a non official docker image.

williamdes avatar Mar 18 '24 09:03 williamdes