ANDROID REDIRECT URI

Giorgio Sfiligoi 326 Reputation points
2025-03-11T11:29:25.92+00:00

I am trying to test the sample https://github.com/Azure-Samples/ms-identity-dotnetcore-maui/tree/main/MauiAppWithBrokerTo run in Android, it requires that "AndroidRedirectUri" be defined.

The Entra ID portal requires a hash key that has to be generated with the 'keytool' utlity and I finally landed to the article https://learn.microsoft.com/en-us/entra/msal/android/frequently-asked-questions

I can only find one file named 'debug.keystore' in my computer: it is located in AppData\Local\Xanarin\Mono for Android and it is dated 15 November 2024, so I believe it is an obsolete file, not applicable to my project.

Anyhow, I experimented the keytool utility with this file; first of all, it does not recognize 'openssl'. So I tried to run it simply omitting '| openssl .. etc.': it generate a long sequence of garbage characters on the screen.

Incidentally, I noted that every time I compiled some program, VS generates a file 'android-debug-keystore.flag' but all these files are 0-byte.

How can I exit from this impasse?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,995 questions
{count} votes

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.