Skip to content

Commit f24195d

Browse files
fix busted code samples
1 parent bad8218 commit f24195d

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ The Azure Active Directory Authentication Library (ADAL) for Android has been de
4545

4646
Add the following dependencies to your app's build.gradle:
4747

48-
```java
48+
```gradle
4949
dependencies {
50-
implementation 'com.microsoft.identity.client:msal:5.1.0'
50+
implementation 'com.microsoft.identity.client:msal:5.1.0'
5151
}
5252
maven {
53-
url 'https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1'
54-
name 'Duo-SDK-Feed'
55-
}
53+
url 'https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1'
54+
name 'Duo-SDK-Feed'
55+
}
5656
```
5757

5858
### Step 2: Create your MSAL configuration file
@@ -61,7 +61,7 @@ maven {
6161

6262
Create your configuration file as a "raw" resource in your project. Refer to it using the generated resource identifier when constructing a `PublicClientApplication` instance. If you're registering your app in the Microsoft Entra admin center for the first time, you'll also be provided with the detailed MSAL [Android configuration file](https://learn.microsoft.com/en-us/entra/msal/android/msal-configuration)
6363

64-
```javascript
64+
```json
6565
{
6666
"client_id" : "<YOUR_CLIENT_ID>",
6767
"redirect_uri" : "msauth://<YOUR_PACKAGE_NAME>/<YOUR_BASE64_URL_ENCODED_PACKAGE_SIGNATURE>",
@@ -78,7 +78,7 @@ The values above are the minimum required configuration. MSAL relies on the def
7878
1. Right-click res and choose New > Directory. Enter raw as the new directory name and select OK.
7979
1. In this new folder (app > src > main > res > raw), create a new JSON file called auth_config_native_auth.json and paste the following template MSAL Configuration:
8080

81-
```
81+
```json
8282
{
8383
"client_id": "Enter_the_Application_Id_Here",
8484
"authorities": [
@@ -141,6 +141,7 @@ PublicClientApplication.createMultipleAccountPublicClientApplication(getContext(
141141
public void onCreated(IMultipleAccountPublicClientApplication application) {
142142
mMultipleAccountApp = application;
143143
}
144+
}
144145
```
145146

146147
Learn how to [instantiate your client application and acquire tokens](https://learn.microsoft.com/en-us/entra/msal/android/acquire-tokens) in the official MSAL Android documentation.

0 commit comments

Comments
 (0)