Skip to content

Commit c8b4d44

Browse files
authored
Merge pull request #215156 from jdmartinez36/pubfix10-19
PM Publish fix: Removed links to deleted code files
2 parents 47b74c2 + 82461be commit c8b4d44

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

articles/active-directory/develop/tutorial-v2-nodejs-desktop.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,9 @@ The renderer methods are exposed by the preload script found in the *preload.js*
7878

7979
This preload script exposes a renderer methods to give the renderer process controlled access to some `Node APIs` by applying IPC channels that have been configured for communication between the main and renderer processes.
8080

81-
6. Next, create *UIManager.js* class inside the *App* folder and add the following code:
82-
83-
:::code language="js" source="~/ms-identity-JavaScript-nodejs-desktop/App/UIManager.js":::
84-
85-
7. After that, create *CustomProtocolListener.js* class and add the following code there:
86-
87-
:::code language="js" source="~/ms-identity-JavaScript-nodejs-desktop/App/CustomProtocolListener.js":::
88-
8981
*CustomProtocolListener* class can be instantiated in order to register and unregister a custom typed protocol on which MSAL Node can listen for Auth Code responses.
9082

91-
8. Finally, create a file named *constants.js* that will store the strings constants for describing the application **events**:
83+
6. Finally, create a file named *constants.js* that will store the strings constants for describing the application **events**:
9284

9385
:::code language="js" source="~/ms-identity-JavaScript-nodejs-desktop/App/constants.js":::
9486

@@ -118,12 +110,6 @@ In *App* folder, create a file named *AuthProvider.js*. The *AuthProvider.js* fi
118110
119111
In the code snippet above, we first initialized MSAL Node `PublicClientApplication` by passing a configuration object (`msalConfig`). We then exposed `login`, `logout` and `getToken` methods to be called by main module (*main.js*). In `login` and `getToken`, we acquire ID and access tokens, respectively, by first requesting an authorization code and then exchanging this with a token using MSAL Node `acquireTokenByCode` public API.
120112
121-
## Add a method to call a web API
122-
123-
Create another file named *fetch.js*. This file will contain an Axios HTTP client for making REST calls to the Microsoft Graph API.
124-
125-
:::code language="js" source="~/ms-identity-JavaScript-nodejs-desktop/App/fetch.js":::
126-
127113
## Add app registration details
128114
129115
Finally, create an environment file to store the app registration details that will be used when acquiring tokens. To do so, create a file named *authConfig.js* inside the root folder of the sample (*ElectronDesktopApp*), and add the following code:

0 commit comments

Comments
 (0)