Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

azure mobile app authentication external redirect url

I have created Azure Mobile App and I am following official docs for this. During Authentication part of the docs following is stated

In the Allowed External Redirect URLs, enter url_scheme_of_your_app://easyauth.callback. The url_scheme_of_your_app in this string is the URL Scheme for your mobile application. It should follow normal URL specification for a protocol (use letters and numbers only, and start with a letter). You should make a note of the string that you choose as you will need to adjust your mobile application code with the URL Scheme in several places.

My Question is that they havent provided any valid example for redirect url so I pasted url_scheme_of_your_app://easyauth.callback in my redirect url in the portal and it gives error because it isnt a valid format, so can anyone please give me a valid example for this url?

Thanks in advance

like image 269
Muhammad Touseef Avatar asked Sep 19 '17 07:09

Muhammad Touseef


People also ask

What is redirect URI in Azure App registration?

A redirect URI, or reply URL, is the location where the authorization server sends the user once the app has been successfully authorized and granted an authorization code or access token.

What is redirect URL for OAuth?

The redirect URL is the endpoint for your application or web page that processes the seller authorization response and manages the seller's OAuth tokens. You need to add this URL to your application using the Developer Dashboard.


2 Answers

To anyone still struggling to figure out what exactly is the "MobileAppUrl", "url_scheme_of_your_app" and "redirectUriScheme" in Azure, here is an example: Assuming that your Azure Mobile App is called myapp, you will have the following:

Mobile App URL: https://myapp.azurewebsites.net

url_scheme_of_your_app: myapp

redirectUriScheme: myapp://easyauth.callback

It is also useful to know that an "Allowed External Redirect URL" for your Authentication settings in Azure Portal, would be:

myapp://easyauth.callback

like image 152
Lazaros Papadopoulos Avatar answered Sep 21 '22 13:09

Lazaros Papadopoulos


I just wrote MyAppName my app name is actually the app name of my app in azure portal, MyAppName://easyauth.callback just like this and it was succesfully saved

like image 32
Muhammad Touseef Avatar answered Sep 25 '22 13:09

Muhammad Touseef