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: demo/README.md
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,18 +26,14 @@ If you don't have a Microsoft account, there are a couple of options to get a fr
26
26
27
27
- Set **Name** to `React Graph Tutorial`.
28
28
- Set **Supported account types** to **Accounts in any organizational directory and personal Microsoft accounts**.
29
-
- Under **Redirect URI**, set the first drop-down to `Web` and set the value to `http://localhost:3000`.
29
+
- Under **Redirect URI**, set the first drop-down to `Single-page application (SPA)` and set the value to `http://localhost:3000`.
30
30
31
31

32
32
33
33
1. Choose **Register**. On the **Angular Graph Tutorial** page, copy the value of the **Application (client) ID** and save it, you will need it in the next step.
34
34
35
35

36
36
37
-
1. Select **Authentication** under **Manage**. Locate the **Implicit grant** section and enable **Access tokens** and **ID tokens**. Choose **Save**.
38
-
39
-

40
-
41
37
## Configure the sample
42
38
43
39
1. Rename the `./graph-tutorial/src/Config.ts.example` file to `./graph-tutorial/src/Config.ts`.
Copy file name to clipboardExpand all lines: tutorial/02-create-app.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,14 +26,14 @@ Before moving on, install some additional packages that you will use later:
26
26
- [fontawesome-free](https://github.com/FortAwesome/Font-Awesome) for icons.
27
27
- [moment](https://github.com/moment/moment) for formatting dates and times.
28
28
- [windows-iana](https://github.com/rubenillodo/windows-iana) for translating Windows time zones to IANA format.
29
-
- [msal](https://github.com/AzureAD/microsoft-authentication-library-for-js) for authenticating to Azure Active Directory and retrieving access tokens.
29
+
- [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) for authenticating to Azure Active Directory and retrieving access tokens.
30
30
- [microsoft-graph-client](https://github.com/microsoftgraph/msgraph-sdk-javascript) for making calls to Microsoft Graph.
Copy file name to clipboardExpand all lines: tutorial/03-register-app.md
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,14 +15,10 @@ In this exercise, you will create a new Azure AD web application registration us
15
15
16
16
- Set **Name** to `React Graph Tutorial`.
17
17
- Set **Supported account types** to **Accounts in any organizational directory and personal Microsoft accounts**.
18
-
- Under **Redirect URI**, set the first drop-down to `Web` and set the value to `http://localhost:3000`.
18
+
- Under **Redirect URI**, set the first drop-down to `Single-page application (SPA)` and set the value to `http://localhost:3000`.
19
19
20
20

21
21
22
22
1. Choose **Register**. On the **React Graph Tutorial** page, copy the value of the **Application (client) ID** and save it, you will need it in the next step.
23
23
24
24

25
-
26
-
1. Select **Authentication** under **Manage**. Locate the **Implicit grant** section and enable **Access tokens** and **ID tokens**. Choose **Save**.
27
-
28
-

@@ -250,4 +259,4 @@ At this point your application has an access token, which is sent in the `Author
250
259
251
260
However, thistokenisshort-lived. Thetokenexpiresanhourafteritisissued. Thisiswheretherefreshtokenbecomesuseful. Therefreshtokenallowstheapptorequestanewaccesstokenwithoutrequiringtheusertosigninagain.
252
261
253
-
BecausetheappisusingtheMSALlibrary, youdonothavetoimplementanytokenstorageorrefreshlogic. The`UserAgentApplication`cachesthetokeninthebrowsersession. The`acquireTokenSilent`methodfirstchecksthecachedtoken, andifitisnotexpired, itreturnsit. Ifitisexpired, itusesthecachedrefreshtokentoobtainanewone. You'll use this method more in the following module.
262
+
BecausetheappisusingtheMSALlibrary, youdonothavetoimplementanytokenstorageorrefreshlogic. The`PublicClientApplication`cachesthetokeninthebrowsersession. The`acquireTokenSilent`methodfirstchecksthecachedtoken, andifitisnotexpired, itreturnsit. Ifitisexpired, itusesthecachedrefreshtokentoobtainanewone. You'll use this method more in the following module.
0 commit comments