Skip to content

Commit a25ffdc

Browse files
authored
Merge pull request #103556 from hamiltonha/patch-8
Update android manifest
2 parents cce8654 + 93871e2 commit a25ffdc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

articles/active-directory/develop/msal-net-xamarin-android-considerations.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,19 @@ That line ensures that the control goes back to MSAL once the interactive portio
6868

6969
## Update the Android manifest
7070
The `AndroidManifest.xml` should contain the following values:
71-
```csharp
71+
```xml
7272
<activity android:name="microsoft.identity.client.BrowserTabActivity">
7373
<intent-filter>
7474
<action android:name="android.intent.action.VIEW" />
7575
<category android:name="android.intent.category.DEFAULT" />
7676
<category android:name="android.intent.category.BROWSABLE" />
77-
<data android:scheme="msal{client_id}" android:host="auth" />
77+
<data android:scheme="msauth"
78+
android:host="Enter_the_Package_Name"
79+
android:path="/Enter_the_Signature_Hash"/>
7880
</intent-filter>
7981
</activity>
8082
```
83+
Substitute the package name you registered in the Azure portal for the `android:host=` value. Substitute the key hash you registered in the Azure portal for the `android:path=` value. The Signature Hash should **not** be URL encoded. Ensure that there is a leading `/` at the beginning of your Signature Hash.
8184

8285
Or, you can [create the activity in code](https://docs.microsoft.com/xamarin/android/platform/android-manifest#the-basics) and not manually edit `AndroidManifest.xml`. For that, you must create a class that has the `Activity` and `IntentFilter` attribute. A class that represents the same values of the above xml would be:
8386

0 commit comments

Comments
 (0)