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
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ To run this sample you will need:
57
57
> - Leave **Redirect URI** blank for now, and select **Register**.
58
58
> 1. On the **Overview** page, find the **Application (client) ID** and the **Directory (tenant) ID** values of the application. Copy these values for later.
59
59
> 1. Select the **Authentication** from the menu, and then add the following information:
60
-
> - In **Redirect URIs**, add `http://localhost:8080/msal4jsample/secure/aad` and `http://localhost:8080/msal4jsample/graph/me`.
60
+
> - In **Redirect URIs**, add `https://localhost:8080/msal4jsample/secure/aad` and `https://localhost:8080/msal4jsample/graph/me`.
61
61
> - Select **Save**.
62
62
> 1. Select the **Certificates & secrets** from the menu and in the **Client secrets** section, click on **New client secret**:
63
63
>
@@ -71,7 +71,7 @@ To run this sample you will need:
71
71
>
72
72
> For the code sample for this quickstart to work, you need to:
73
73
>
74
-
> 1. Add reply URLs as `http://localhost:8080/msal4jsamples/secure/aad` and `http://localhost:8080/msal4jsamples/graph/me`.
74
+
> 1. Add reply URLs as `https://localhost:8080/msal4jsamples/secure/aad` and `https://localhost:8080/msal4jsamples/graph/me`.
Put generated keystore file to "resources" folder.
121
+
108
122
#### Step 4: Run the code sample
109
123
110
124
To run the project, you can either:
@@ -113,11 +127,11 @@ Run it directly from your IDE by using the embedded spring boot server or packag
113
127
114
128
##### Running from IDE
115
129
116
-
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 http://localhost:8080
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
117
131
118
132
1. On the front page, select the **Login** button to redirect to Azure Active Directory and prompt the user for their credentials.
119
133
120
-
1. After the user is authenticated, they are redirected to *http://localhost:8080/msal4jsample/secure/aad*. They are now signed in, and the page will show information about the signed-in account. The sample UI has the following buttons:
134
+
1. After the user is authenticated, they are redirected to *https://localhost:8080/msal4jsample/secure/aad*. They are now signed in, and the page will show information about the signed-in account. The sample UI has the following buttons:
121
135
- *Sign Out*: Signs the current user out of the application and redirects them to the home page.
122
136
- *Show User Info*: Acquires a token for Microsoft Graph and calls Microsoft Graph with a request containing the token, which returns basic information about the signed-in user.
0 commit comments