Skip to content

Commit ec876a3

Browse files
authored
Merge pull request #103592 from MarileeTurscak-MSFT/patch-308
Updated AndroidManifest
2 parents aab2cbf + 3625cdf commit ec876a3

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

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

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +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-
```xml
72-
<activity android:name="microsoft.identity.client.BrowserTabActivity">
73-
<intent-filter>
74-
<action android:name="android.intent.action.VIEW" />
75-
<category android:name="android.intent.category.DEFAULT" />
76-
<category android:name="android.intent.category.BROWSABLE" />
77-
<data android:scheme="msauth"
78-
android:host="Enter_the_Package_Name"
79-
android:path="/Enter_the_Signature_Hash"/>
80-
</intent-filter>
81-
</activity>
71+
72+
<!--Intent filter to capture System Browser or Authenticator calling back to our app after sign-in-->
73+
<activity
74+
android:name="com.microsoft.identity.client.BrowserTabActivity">
75+
<intent-filter>
76+
<action android:name="android.intent.action.VIEW" />
77+
<category android:name="android.intent.category.DEFAULT" />
78+
<category android:name="android.intent.category.BROWSABLE" />
79+
<data android:scheme="msauth"
80+
android:host="Enter_the_Package_Name"
81+
android:path="/Enter_the_Signature_Hash" />
82+
</intent-filter>
83+
</activity>
8284
```
8385
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.
8486

0 commit comments

Comments
 (0)