Skip to content

Commit 4c151d2

Browse files
authored
Merge pull request #88199 from FrankHu-MSFT/patch-61
(AzureCXP) Adding RedirectURI
2 parents f6af492 + 7e502fe commit 4c151d2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

articles/active-directory/develop/quickstart-v2-javascript.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ Select the option that's suitable to your development environment:
9595
var msalConfig = {
9696
auth: {
9797
clientId: "Enter_the_Application_Id_here",
98-
authority: "https://login.microsoftonline.com/Enter_the_Tenant_info_here"
98+
authority: "https://login.microsoftonline.com/Enter_the_Tenant_info_here",
99+
redirectURI: "http://localhost:30662/"
99100
},
100101
cache: {
101102
cacheLocation: "localStorage",
@@ -168,7 +169,8 @@ The quickstart code also shows how to initialize the MSAL library:
168169
var msalConfig = {
169170
auth: {
170171
clientId: "Enter_the_Application_Id_here",
171-
authority: "https://login.microsoftonline.com/Enter_the_Tenant_Info_Here"
172+
authority: "https://login.microsoftonline.com/Enter_the_Tenant_Info_Here",
173+
redirectURI: "http://localhost:30662/"
172174
},
173175
cache: {
174176
cacheLocation: "localStorage",
@@ -181,8 +183,9 @@ var myMSALObj = new Msal.UserAgentApplication(msalConfig);
181183

182184
> |Where | |
183185
> |---------|---------|
184-
> |`ClientId` | The application ID of the application that's registered in the Azure portal.|
186+
> |`clientId` | The application ID of the application that's registered in the Azure portal.|
185187
> |`authority` | (Optional) The authority URL that supports account types, as described previously in the configuration section. The default authority is `https://login.microsoftonline.com/common`. |
188+
> |`redirectURI` | The application registration's configured reply/redirect URI. In this case, `http://localhost:30662/`. |
186189
> |`cacheLocation` | (Optional) Sets the browser storage for the auth state. The default is sessionStorage. |
187190
> |`storeAuthStateInCookie` | (Optional) The library that stores the authentication request state that's required for validation of the authentication flows in the browser cookies. This cookie is set for IE and Edge browsers to mitigate certain [known issues](https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/Known-issues-on-IE-and-Edge-Browser#issues). |
188191
@@ -278,4 +281,4 @@ To browse the MSAL repo for documentation, FAQ, issues, and more, see:
278281
Help us improve the Microsoft identity platform. Tell us what you think by completing a short two-question survey.
279282

280283
> [!div class="nextstepaction"]
281-
> [Microsoft identity platform survey](https://forms.office.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbRyKrNDMV_xBIiPGgSvnbQZdUQjFIUUFGUE1SMEVFTkdaVU5YT0EyOEtJVi4u)
284+
> [Microsoft identity platform survey](https://forms.office.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbRyKrNDMV_xBIiPGgSvnbQZdUQjFIUUFGUE1SMEVFTkdaVU5YT0EyOEtJVi4u)

0 commit comments

Comments
 (0)