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: docs/embedded/mslearn/m01-05-hol.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ Add the two new permissions to the existing `"resourceAppId": "00000003-0000-000
117
117
118
118
### Grant admin consent to the new permissions
119
119
120
-
Some of the permissions require admin consent. Select 88API Permissions88 in the left-hand navigation, scroll to the bottom of the page, and select the link **Enterprise applications**.
120
+
Some of the permissions require admin consent. Select **API Permissions** in the left-hand navigation, scroll to the bottom of the page, and select the link **Enterprise applications**.
121
121
122
122
On the Permissions page, select **Grant admin consent for Contoso**. If prompted to sign-in, use the same **Work and School** account you used to sign-in to the Microsoft Entra ID admin center. On the **Permissions requested** page, select **Accept** to grant admin consent to the two pairs of permissions: `FileStorageContainer.Selected` for Microsoft Graph and `Container.Selected` for SharePoint. The two pairs represent the application & delegated options for each of the two permissions.
123
123
@@ -198,7 +198,7 @@ With the latest **SharePoint Online PowerShell module** installed, the next step
198
198
Update the following values in the following PowerShell script, then execute the script:
199
199
200
200
-**`{{SPO_ADMIN_URL}}`**: This is the URL of your SharePoint Online admin center. You can get this by signing into the `[https://portal.microsoft.com](https://portal.microsoft.com)` with the **Work and School** of your tenant’s admin account, select **Show All** at the bottom of the left-hand navigation, then select **Admin Centers > SharePoint**. Copy the URL of the SharePoint admin center and use this value. For example, if your tenant ID is **Contoso123**, your admin url would be `https://contoso123-admin.sharepoint.com`.
201
-
-`**{{CONTAINER_TYPE_NAME}}**`: Pick a name for your new Container Type. For example, use `FirstContainerType`.
201
+
-**`{{CONTAINER_TYPE_NAME}}`**: Pick a name for your new Container Type. For example, use `FirstContainerType`.
202
202
-**`{{AZURE_ENTRA_APP_ID}}`:** Set this to the value of the Microsoft Entra ID app ID, also known as the "client ID", you created previously. This value should be in your local text file.
@@ -104,7 +110,7 @@ This command will install the NPM packages:
104
110
-**[@microsoft/microsoft-graph-client](https://www.npmjs.com/package/@microsoft/microsoft-graph-client)**: Microsoft Graph JavaScript SDK.
105
111
-**[isomorphic-fetch](https://www.npmjs.com/package/isomorphic-fetch)**: Polyfill that adds the browser `fetch` API as a global so it’s API is consistent between the client & server.
106
112
-**[jsonwebtoken](https://www.npmjs.com/package/jsonwebtoken)**: Implementation of JSON Web Tokens.
107
-
-[**jwks-rsa**](https://www.npmjs.com/package/jwks-rsa): Library to retrieve signing keys from a JSON Web Key Set (JWKS) endpoint.
113
+
-**[jwks-rsa](https://www.npmjs.com/package/jwks-rsa)**: Library to retrieve signing keys from a JSON Web Key Set (JWKS) endpoint.
108
114
109
115
Add a TypeScript compiler configuration for the server-side project:
Copy file name to clipboardExpand all lines: docs/embedded/mslearn/m02-05-hol.md
+18-11Lines changed: 18 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -168,13 +168,11 @@ Stop the server by pressing <kbd>CTRL</kbd> + <kbd>C</kbd> in the console.
168
168
169
169
With the basic project setup and configured to support user authentication, let’s now add support to list and select Containers in your tenant’s partition.
170
170
171
-
Container management is a privileged operation that requires an access token that must be obtained server side
172
-
173
-
Let’s start by first creating the server-side API parts to support the React app.
171
+
Container management is a privileged operation that requires an access token that must be obtained server side. Let’s start by first creating the server-side API parts to support the React app.
174
172
175
173
### Add utility method to retrieve an OBO token to call Microsoft Graph
176
174
177
-
We first need is a utility file to obtain a token using the OAuth2 On-Behalf-Of flow using our existing credential.
175
+
We first need a utility file to obtain a token using the OAuth2 On-Behalf-Of flow using our existing credential.
178
176
179
177
Create a new file **./server/auth.ts** and add the following code to it:
180
178
@@ -336,7 +334,7 @@ import * as Constants from './../common/constants';
Update the rendering by adding the following to the `return()` method after the `// BOOKMARK 3` code. This will create a `DropDown` control and a a placeholder where we’ll add a list of the contents in the selected Container:
497
+
Create an event handler after the React hook implementation you just added that will fire when a user selects a Container from the dropdown control we'll add to our UX:
Update the rendering by adding the following to the `return()` method after the `// BOOKMARK 3` code. This will create a `DropDown` control and a placeholder where we’ll add a list of the contents in the selected Container:
The last step is to crate the Microsoft Graph client and submit the request to create a new Container that have a specific `ContainerTypeId` set. Add the following code immediacy before the function’s closing bracket:
639
+
The last step is to create the Microsoft Graph client and submit the request to create a new Container set to a specific `ContainerTypeId`. Add the following code immediacy before the function’s closing bracket:
633
640
634
641
```typescript
635
642
try {
@@ -654,7 +661,7 @@ try {
654
661
}
655
662
```
656
663
657
-
Add this new endpoint to our restify server. Locate and open the **./server/index.ts** file, add a single import statement to the end of the existing imports, and add a listener for HTTP GET requests to the `/api/createContainers` endpoint:
664
+
Add this new endpoint to our restify server. Locate and open the **./server/index.ts** file, add a single import statement to the end of the existing imports, and add a listener for HTTP POST requests to the `/api/createContainers` endpoint:
Copy file name to clipboardExpand all lines: docs/embedded/mslearn/m02-07-hol.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ export default Files;
117
117
> [!NOTE]
118
118
> Notice the `// BOOKMARK #` comments in the component. We’ll use these to ensure you’re adding code in the correct places.
119
119
120
-
### Display a table of the selected Container contents
120
+
### Display a list of the selected Container contents
121
121
122
122
The first thing we need to address is to display the contents of the selected Container. To do this, we’ll use the `DataGrid` component from the Fluent UI React library.
0 commit comments