question

XieNash-6883 avatar image
0 Votes"
XieNash-6883 asked saldana-msft edited

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

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


microsoft-graph-usersazure-managed-applications
image.png (37.6 KiB)
image.png (51.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.

@CarlZhao-MSFT hello, Carl Zhao, do you know why Azure not support single slash?

1 Vote 1 ·

1 Answer

CarlZhao-MSFT avatar image
1 Vote"
CarlZhao-MSFT answered XieNash-6883 commented

Hi @XieNash-6883

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
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.

Thanks for your feedback, I'v submit a support ticket and get response in my email.
Azure does not support single slash in redirect url. the response of support ticket told me to send a feedback in https://feedback.azure.com/d365community/.
I'v send a feedback already.

1 Vote 1 ·