question

cudoxy avatar image
0 Votes"
cudoxy asked ajkuma-MSFT answered

Add parameters in Sign in with Facebook via Azure App Service

We're performing Sign In with Facebook via the Azure App Service based on this guide:
https://docs.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-webapps-authentication
auth-type.png (42.4 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

cudoxy, Firstly, please accept my apologies for the delayed response from over the weekend. I also notice you had posted a similar question on this here.
Thanks for the great question. I'm taking a look into this now and will get back to you shortly.


0 Votes 0 ·
TakahitoIwasa avatar image
0 Votes"
TakahitoIwasa answered

@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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered

@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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.