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
Copy file name to clipboardExpand all lines: articles/active-directory/develop/quickstart-v2-java-webapp.md
+10-11Lines changed: 10 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,6 @@ To run this sample you will need:
87
87
88
88
1. Extract the zip file to a local folder.
89
89
1. If you use an integrated development environment, open the sample in your favorite IDE (optional).
90
-
91
90
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:
92
91
93
92
```file
@@ -98,15 +97,14 @@ To run this sample you will need:
> - `Enter_the_Application_Id_here` - is the Application Id for the application you registered.
105
-
> - `Enter_the_Client_Secret_Here` - is the **Client Secret** you created in **Certificates & Secrets** for the application you registered.
106
-
> - `Enter_the_Tenant_Info_Here` - is the **Directory (tenant) ID** value of the application you registered.
100
+
> [!div renderon="docs"]
101
+
> Where:
102
+
>
103
+
> - `Enter_the_Application_Id_here` - is the Application Id for the application you registered.
104
+
> - `Enter_the_Client_Secret_Here` - is the **Client Secret** you created in **Certificates & Secrets** for the application you registered.
105
+
> - `Enter_the_Tenant_Info_Here` - is the **Directory (tenant) ID** value of the application you registered.
107
106
108
-
4. In order to use https with localhost fill in server.ssl.key properties.
109
-
Use keytool utility (included in JRE) if you want to generate self-signed certificate.
107
+
1. To use https with localhost, fill in the server.ssl.key properties. To generate a self-signed certificate, use the keytool utility (included in JRE).
110
108
111
109
```
112
110
Example:
@@ -117,7 +115,8 @@ To run this sample you will need:
117
115
server.ssl.key-store-password=password
118
116
server.ssl.key-alias=testCert
119
117
```
120
-
Put generated keystore file to "resources" folder.
118
+
119
+
Put the generated keystore file in the "resources" folder.
121
120
122
121
#### Step 4: Run the code sample
123
122
@@ -127,7 +126,7 @@ Run it directly from your IDE by using the embedded spring boot server or packag
127
126
128
127
##### Running from IDE
129
128
130
-
If you are running the web application from an IDE, click on run, then navigate to the home page of the project. For this sample, the standard home page URL is https://localhost:8080
129
+
If you are running the web application from an IDE, click on run, then navigate to the home page of the project. For this sample, the standard home page URL is https://localhost:8080.
131
130
132
131
1. On the front page, select the **Login** button to redirect to Azure Active Directory and prompt the user for their credentials.
0 commit comments