Power Pages integration - ExternalAuthenticationFailed

Hello,

I am trying to use Auth0 as Identity Provider with Open ID Connect protocol on Power Pages (Power Apps Portal). Everything seems to work fine until I am being redirected to Power Pages where the sign in fails.

https://my-portal.powerappsportals.com/Account/Login/ExternalAuthenticationFailed

I followed the recommendations of this article

https://blog.magnetismsolutions.com/blog/adammurchison/2022/07/15/authenticating-power-apps-portal-with-oauth-2-0

and

I already spent several hours trying to find the bug. Thank you in advance for your precious help.