Hello,
A few weeks ago, my OAuth settings stopped working properly.
I’ve performed all the necessary upgrades:

I installed the OAuth2 plugin (v0.6),
recreated the application token, and configured everything according to the documentation.
However, when I try to save the OAuth2 settings, I’m redirected to the Microsoft login page. I enter my credentials, but after that, I receive a 504 Gateway Timeout.
I’ve checked the PHP configuration and increased all relevant timeout values, but the issue persists.
If anyone has any idea how to resolve this, I’d really appreciate the help.
Thank you!