Thank you for posting this in Microsoft Q&A.
I understand that you encountered an 'Invalid Audience' error when trying to authenticate with Entra ID for your MAUI application.
I can't add the redirect uri because it is msal<clientId>://auth, and it expects the uri to start with https:// *
Redirect URIs supportmsal<clientId>://auth
in native application registration.*
To add a redirect URI to your MAUI application, you can follow the below steps
1.Open your MAUI application, select the Authentication blade to the left.
2.Select Add a platform and select the public client/native (mobile & desktop) option.
You should be able to find the msal{YOUR_CLIENT_ID}://auth
option under Redirect URIs. Please select it and click on 'Configure'. If the msal{YOUR_CLIENT_ID}://auth
option is not visible, you may need to add it as a custom redirect URI.
For your reference : A .NET MAUI app using MSAL.NET to sign-in users and calling MS Graph Api
Hope this helps. Do let us know if you any further queries.
Thanks,
Navya.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.