Greetings.
I'm experiencing an error after updating the Microsoft.Identity.Client to the lastest version 4.61.1.
The old version (4.56.0) was working perfectly using the same line of codes:
var authBuilder = PublicClientApplicationBuilder.Create(clientId) .WithAuthority(AzureCloudInstance.AzurePublic, tenantId)*
*//.WithRedirectUri("app://gfdhghg-fa19-5t76hg-ghgh-5646767")* this works with the old version (4.56.0) but not on this version 4.61.1 throwing the error "**Only loopback redirect uri is supported, but urn::wg:oauth:2.0:oob**"
//.WithRedirectUri("http://localhost")* this works with the new version 4.61.1 but the remote server doesnt not recognize it throwing the below error
AADSTS50011: The redirect URI 'http://localhost:56010' specified in the request does not match the redirect URIs configured for the application 'gfdhghg-fa19-5t76hg-ghgh-5646767'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.
Do you know how to overcome this issue please?
Thank you
I m trying to access Dynamic CRM 365 using the web API (https://myorganization .api.uyty.dynamics.com/api/data/v9.2/)
Thank you everyone to all for your answers, I downgraded the version of the lib to 4.56.0 which was working initially.