You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this quickstart, you'll learn how to integrate a Java web application with the Microsoft identity platform. Your app will sign in a user, get an access token to call the Microsoft Graph API, and make a request to the Microsoft Graph API.
22
20
23
-
When you've completed this quickstart, your application will accept sign-ins of personal Microsoft accounts (including outlook.com, live.com, and others) and work or school accounts from any company or organization that uses Azure Active Directory.
24
-
25
-

21
+
When you've completed this quickstart, your application will accept sign-ins of personal Microsoft accounts (including outlook.com, live.com, and others) and work or school accounts from any company or organization that uses Azure Active Directory. (See [How the sample works](#how-the-sample-works) for an illustration.)
26
22
27
23
## Prerequisites
28
24
29
25
To run this sample you will need:
30
26
31
27
-[Java Development Kit (JDK)](https://openjdk.java.net/) 8 or greater, and [Maven](https://maven.apache.org/).
32
-
- An Azure Active Directory (Azure AD) tenant. For more information on how to get an Azure AD tenant, see [How to get an Azure AD tenant](https://azure.microsoft.com/documentation/articles/active-directory-howto-tenant/).
33
28
34
29
> [!div renderon="docs"]
35
30
> ## Register and download your quickstart app
@@ -80,32 +75,39 @@ To run this sample you will need:
80
75
> >  Your application is configured with these attributes.
81
76
82
77
#### Step 2: Download the code sample
78
+
> [!div renderon="docs"]
79
+
> [Download the Code Sample](https://github.com/Azure-Samples/ms-identity-java-webapp/archive/master.zip)
83
80
84
-
[Download the Code Sample](https://github.com/Azure-Samples/ms-identity-java-webapp/archive/master.zip)
85
-
86
-
#### Step 3: Configure the code sample
87
-
88
-
1. Extract the zip file to a local folder.
89
-
1. If you use an integrated development environment, open the sample in your favorite IDE (optional).
90
-
91
-
1. Open the application.properties file, which can be found in src/main/resources/ folder and replace the value of the fields *aad.clientId*, *aad.authority* and *aad.secretKey* with the respective values of **Application Id**, **Tenant Id** and **Client Secret** as the following:
> 1. If you use an integrated development environment, open the sample in your favorite IDE (optional).
91
+
> 1. Open the application.properties file, which can be found in src/main/resources/ folder and replace the value of the fields *aad.clientId*, *aad.authority* and *aad.secretKey* with the respective values of **Application Id**, **Tenant Id** and **Client Secret** as the following:
> - `Enter_the_Application_Id_here` - is the Application Id for the application you registered.
105
104
> - `Enter_the_Client_Secret_Here` - is the **Client Secret** you created in **Certificates & Secrets** for the application you registered.
106
105
> - `Enter_the_Tenant_Info_Here` - is the **Directory (tenant) ID** value of the application you registered.
107
106
108
-
#### Step 4: Run the code sample
107
+
> [!div class="sxs-lookup" renderon="portal"]
108
+
> #### Step 3: Run the code sample
109
+
> [!div renderon="docs"]
110
+
> #### Step 4: Run the code sample
109
111
110
112
To run the project, you can either:
111
113
@@ -126,6 +128,9 @@ If you are running the web application from an IDE, click on run, then navigate
126
128
127
129
## More information
128
130
131
+
### How the sample works
132
+

133
+
129
134
### Getting MSAL
130
135
131
136
MSAL for Java (MSAL4J) is the Java library used to sign in users and request tokens used to access an API protected by the Microsoft identity Platform.
0 commit comments