Skip to content

Commit 30a1c98

Browse files
committed
update
1 parent 456883d commit 30a1c98

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

support/entra/entra-id/app-integration/android-app-authentication-fails-after-published-to-google-play-store.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ ms.custom: sap:Developing or Registering apps with Microsoft identity platform
88
---
99
# Authentication failed after Android app is published to Google Play Store
1010

11-
This article provides a solution to an authentication failure that occurs after users install an Android app that's published to Google Play Store.
11+
This article provides a solution to an authentication failure that occurs during signing in after users install an Android app that's published to Google Play Store.
1212

1313
## Symptoms
1414

1515
Consider the following scenario:
1616

1717
- You have successfully implemented Microsoft Entra Authentication in your Android app with the Microsoft Authentication Library.
1818
- The app has been built and executed, and passed all QA testing.
19-
- You publish the app on Google Play Store.
19+
- You publish the app to Google Play Store.
2020

2121
After users install the app, authentication doesn't work when signing in to the app.
2222

@@ -44,24 +44,23 @@ The public signature hash of an application installed via Google Play differs fr
4444

4545
To resolve this issue, do the following things:
4646

47-
- Get the new signature hash with the MSAL Package Inspector tool or from the Google Play Console .
48-
- Add a new redirect URI to the App Registration in the Azure portal with the new signature hash.
49-
- Update the MSAL configuration within the application code to use the new redirect URI and signature hash.
47+
- [Get the new signature hash with the MSAL Package Inspector tool or from the Google Play Console](#get-the-new-signature-hash-with-the-msal-package-inspector-tool-or-from-the-google-play-console).
48+
- [Add a new redirect URI to the App Registration in the Azure portal with the new signature hash](#add-a-new-redirect-uri-to-the-app-registration-in-the-azure-portal-with-the-new-signature-hash).
49+
- [Update the MSAL configuration within the application code to use the new redirect URI and signature hash](#update-the-msal-configuration-within-the-application-code-to-use-the-new-redirect-uri-and-signature-hash).
5050

51-
### Find the new signature hash
51+
### Get the new signature hash with the MSAL Package Inspector tool or from the Google Play Console
5252

5353
You can get the new signature hash by using the MSAL Package Inspector tool or from the Google Play Console.
5454

55-
To install and use the MSAL Package Inspector, see
56-
https://blogs.aaddevsup.xyz/2022/03/package-inspector-for-msal-android-native-guide/.
55+
To install and use the MSAL Package Inspector, see [Package Inspector for MSAL Android Native Guide](https://blogs.aaddevsup.xyz/2022/03/package-inspector-for-msal-android-native-guide/).
5756

5857
To get the signature hash from the Google Play Console, follow these steps:
5958

6059
1. Go to the Google Play Console and sign in with your Google Developer account.
6160
2. Once you are in the Google Play Console, select the app you works on.
6261
3. On the left navigation, under the **Release** category, expand **Setup** and select **App Integrity**.
6362
4. Select the **App signing**tab. You will see the **fingerprint** of the app signing key in three different variations.
64-
5. Copy the **SHA-1 certificate fingerprint** and paste it into the following PowerShell script as the value of the `$Thumbprint` variable.
63+
5. Copy the **SHA-1 certificate fingerprint** and paste it into the PowerShell script in step 6 as the value of the `$Thumbprint` variable.
6564
6. Run the following script to obtain the base64 encoded fingerprint that MSAL needs:
6665

6766
```powershell
@@ -93,12 +92,13 @@ To get the signature hash from the Google Play Console, follow these steps:
9392
5. Under **Configure platforms**, select **Android**.
9493
9594
:::image type="content" source="media/android-app-authentication-fails-after-published-to-google-play-store/app-reg-platform-config.png" alt-text="Screenshot that shows how to configure Android platform.":::
96-
6. Enter the package name of your Android app and the new signature hash in the indicated fields and then select **Configure**.
95+
6. Enter the package name of your Android app. Also generate and enter the signature hash.
9796
9897
:::image type="content" source="media/android-app-authentication-fails-after-published-to-google-play-store/app-registrations-configure-android-app.png" alt-text="Screenshot that shows how to configure an Android app.":::
9998
10099
> [!NOTE]
101100
> It's fine to use the same package name in multiple Android Redirect URIs as long as the signature hash is different.
101+
7. Select **Configure** to complete the platform configuration.
102102
103103
### Update the MSAL Configuration within the application code to use the new redirect URI and signature hash
104104

0 commit comments

Comments
 (0)