@Frank To solve this issue, you can configure Easy Auth to use OpenID Connect authentication with your identity provider. This will allow users to authenticate with the identity provider before being redirected to the backoffice page.
Here are the steps to configure Easy Auth with OpenID Connect authentication:
- In the Azure portal, go to your App Service and click on "Authentication / Authorization" under "Settings".
- Turn on "App Service Authentication" and select "Log in with Azure Active Directory" as the authentication provider.
- Under "Azure Active Directory", select "Express" mode and enter the required information for your identity provider.
- Click "OK" to save the changes.
Once you have configured Easy Auth with OpenID Connect authentication, you can remove the rewrite rule from the web.config file. Users will now be redirected to the identity provider before being redirected to the backoffice page.