These days, enabling safe authentication on any app isn’t that sophisticated, as we’ve sufficient automated options.
After getting logged in, go to My Apps part within the prime nav and choose “Create App” as under
From left navigation go to settings, and search for “Legitimate OAuth Redirect URIs” fill within the worth as under and click on Save Adjustments
Substitute the time period “<YourAzureAppServiceName>” as your azure app service title.
Now, go to normal Settings->Fundamental space the place you may configure the essential app data like appName, Privateness coverage URL, Time period Service URL, App Emblem. This data will likely be seen when consumer tries to login to your software.
Click on “Present” button in App Secret and duplicate the key key of your app. Don’t share this key with anybody.
Make a remark of this App ID and App Secret, you have to this to configure in Azure App.
The account which you used to create this app is the administrator of this app. Solely this consumer can entry the Azure app now, if you wish to permit your group, go to Roles within the left navigation and grant permission to your group primarily based on the position.
As soon as you’re achieved with the event, you could make this app dwell to permit public customers to entry your app. It may be achieved by turning off “In Growth” mode.
Configuring Fb Authentication in Azure App Service
Click on on any of the app service software on which you want to allow Fb authentication.
Within the upcoming properties pane search for Authentication/Authorization possibility like under. By default, Authentication is disabled, allow it utilizing the toggler such as you see within the under screenshot.
Within the upcoming display choose “Fb” because the authentication kind. Enter the App ID and App Secret you obtained from Fb developer account and configure the scopes wanted by your software and click on OK button.
Now, in authentication display select “Motion to take when request isn’t authenticated” as “Log in with Fb” and click on Save.
Now we’re all set with the Fb authentication, browse your software within the browser and you’ll be prompted to enter your Fb credentials. As soon as your Fb credentials are validated you’ll get under display with the app data you configured within the developer account.
Click on “Proceed”, which can take you to your precise Azure App Service software.
I hope this text lets you allow Fb authentication on an Azure App Service. You probably have any questions/points about this text, please let me know within the feedback.