When registering the application in Azure for the UiPath Office365 Activity, an error is thrown when entering the reply URL urn:ietf:wg:oauth:2.0:oob . How to resolve?
The Microsoft Authentication Library (MSAL.NET) uses urn:ietf:wg:oauth:2.0:oob as the default redirect URI and this value will likely work when using the InteractiveToken authentication type.
In the future, Microsoft plans to change the default redirect URI to https://login.microsoftonline.com/common/oauth2/nativeclient, so it is recommended to consider using this instead.
If any error is thrown when entering this URI in the "Redirect URI" field, it might be because the application type is not "public client/native". Follow the below steps to solve this:
- Access the application in Azure > Authentication > Click on Add a Platform:
- Select Mobile and Desktop applications:
- Add the URI and save it
Note: If the authentication type is Integrated Windows Authentication or Username and Password, there is not need to register a redirect URI for the application. These flows do a round trip to the Microsoft identity platform v2.0 endpoint, and the application will not be called back on any specific URI.