Microsoft MSAL Integration not work when app download from play store

Viewed 513

I have created mobile app with Azure MSAL integration and use production redirect uri also. mobile app work properly with release apk. but when I uploaded apk to play store and after download from play store app does not work.

this is the error come from

The redirect URI in the configuration file doesn't match with the one generated with package name and signature hash. Please verify the uri in the config file and your app registration in Azure portal.

config File

{
  "client_id" : "efd193e0-52fe-3495-a66e-699cd8bff715",
  "authorization_user_agent" : "DEFAULT",
  "redirect_uri" : "msauth://com.seuw.kyto/%2Bkdcs24P7wnbe1c6eSY4PZGv5hE%3D",
  "account_mode" : "SINGLE",
  "authorities" : [
    {
      "type": "AAD",
      "audience": {
        "type": "AzureADMyOrg",
        "tenant_id": "1f24ad03-4ab5-34c6-9334-86aedd37af18"
      }
    }
  ]
}
1 Answers

This may possible, after summiting the apk to Google play store. Google is signing the package with different key that led to the different hash generation.

You can use the Msal package inspector to get the signature hash of the application. Package Inspector

if you find the signature of the apk is different from what you added in the config and registered in the Azure Ad then update on both the place.

Related