Redirect URL of OAuth2.0 of Azure application can not set with a single slash.

Xie Nash 51 Reputation points
2022-01-27T07:03:28.677+00:00

In RFC8252 Section 7.1 https://datatracker.ietf.org/doc/html/rfc8252#section-7.1 said that custom redirect url should be like "com.example.app:/oauth2redirect/example-provider".
Why Mobile and desktop appication of Azure not support such format, Azure said "Must start with HTTPS, HTTP, or 'customScheme://'", it is double slash!!!
When using double slash in redirect URL, open microsoft login page by OAuth 2.0 auth API from Android native App, after got authrization, go back to App, it is always jump a dialog said "this site would like to open an app"..This UX experience is bad.

So I suggest Azure follow the RFC8252 Section 7.1 to support single slash ("/") appears after the scheme component.

for example: com.example.app:/oauth2redirect/example-provider

168877-image.png

168918-image.png

Azure Managed Applications
Azure Managed Applications
An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
148 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,272 questions
{count} votes

Accepted answer
  1. CarlZhao-MSFT 42,451 Reputation points
    2022-01-28T08:13:17.88+00:00

    Hi @Xie Nash

    I just tested in the Azure portal and it seems to be by design. It does not support redirect URLs with a single slash (:/). I noticed that the documentation you shared is a few years old, and I'm not sure if the Azure portal has made changes to the restrictions on redirecting URLs.

    So I suggest you to open a support ticket for help from the Azure product team.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.