Add parameters in Sign in with Facebook via Azure App Service

CudoXY 26 Reputation points
2021-10-22T06:00:29.28+00:00

We're performing Sign In with Facebook via the Azure App Service based on this guide:
https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-facebook

Since we're authenticating via .auth/login/facebook, is there a way to pass Facebook-specific parameters like auth_type=rerequest and auth_type=reauthenticate? Adding either of these parameter via .auth/login/facebook?auth_type=<rerequest/reauthenticate> doesn't seem to reach the redirect location facebook.com/dialog/oauth.

We had also explored some OAuth parameters such as prompt=login but this doesn't seem to have any effect.

We're hoping to get this dialog from Facebook:
142813-auth-type.png
(auth_type=rerequest (left); auth_type=reauthenticate (right))

Is there a recommended way to do this? Thanks in advance!

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,863 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Takahito Iwasa 4,841 Reputation points MVP
    2021-10-24T21:13:57.797+00:00

    @CudoXY

    Hi.

    I have tried.
    Since standard EasyAuth probably cannot be achieved as long as you check the published document, you may be able to use the approach of editing the response with Front Door or Application Gateway.

    I have left the verification results below, so please take a look if you like.(I'm sorry in Japanese)

    Azure App Service組み込みの認証機能(Easy Auth)でプロバイダーの認証エンドポイントへ送信するGETパラメータを追加する \| DevelopersIO

    0 comments No comments

  2. ajkuma 22,401 Reputation points Microsoft Employee
    2021-10-25T19:25:54.63+00:00

    @CudoXY ,

    Currently, App Service doesn't support these parameters. I have relayed the feedback to our product engineering team to see if this can be supported in the future. Much appreciate your feedback on this.

    Also, just to confirm, are you referring to these Facebook docs for the parameters or any other doc/samples to accomplish your scenario.

    Requesting & Revoking Permissions

    Re-Authentication

    Manually Build a Login Flow

    0 comments No comments