Skip to content

Commit 83a3c62

Browse files
committed
cleanup
1 parent 9a179ce commit 83a3c62

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

2-Authorization/1-call-api-react/API/ToDoListAPI/appsettings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"AzureAd": {
3-
"Instance": "https://TrialTenantkwFwHYij.ciamlogin.com/",
4-
"TenantId": "1f8afb3b-271f-401d-ac59-f53b1c7bfce7",
5-
"ClientId": "9c41be2b-d52d-4209-b987-1459a3d62d99",
3+
"Instance": "https://Enter_the_Tenant_Subdomain_Here.ciamlogin.com/",
4+
"TenantId": "Enter_the_Tenant_Id_Here",
5+
"ClientId": "Enter_the_Application_Id_Here",
66
"Scopes": {
77
"Read": ["ToDoList.Read", "ToDoList.ReadWrite"],
88
"Write": ["ToDoList.ReadWrite"]

2-Authorization/1-call-api-react/SPA/src/authConfig.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ import { LogLevel } from "@azure/msal-browser";
1212
*/
1313
export const msalConfig = {
1414
auth: {
15-
clientId: '778d2a8d-7649-42a2-a694-3dc44cb77d50', // This is the ONLY mandatory field that you need to supply.
16-
authority: 'https://TrialTenantkwFwHYij.ciamlogin.com/', // Replace the placeholder with your tenant subdomain
17-
// clientId: 'Enter_the_Application_Id_Here', // This is the ONLY mandatory field that you need to supply.
18-
// authority: 'https://Enter_the_Tenant_Subdomain_Here.ciamlogin.com/', // Replace the placeholder with your tenant subdomain
15+
clientId: 'Enter_the_Application_Id_Here', // This is the ONLY mandatory field that you need to supply.
16+
authority: 'https://Enter_the_Tenant_Subdomain_Here.ciamlogin.com/', // Replace the placeholder with your tenant subdomain
1917
redirectUri: '/', // You must register this URI on Microsoft Entra admin center/App Registration. Defaults to window.location.origin
2018
postLogoutRedirectUri: '/', // Indicates the page to navigate after logout.
2119
},
@@ -62,10 +60,8 @@ export const protectedResources = {
6260
toDoListAPI: {
6361
endpoint: 'https://localhost:44351/api/todolist',
6462
scopes: {
65-
// read: ['api://Enter_the_Web_Api_Application_Id_Here/ToDoList.Read'],
66-
// write: ['api://Enter_the_Web_Api_Application_Id_Here/ToDoList.ReadWrite'],
67-
read: ['api://9c41be2b-d52d-4209-b987-1459a3d62d99/ToDoList.Read'],
68-
write: ['api://9c41be2b-d52d-4209-b987-1459a3d62d99/ToDoList.ReadWrite'],
63+
read: ['api://Enter_the_Web_Api_Application_Id_Here/ToDoList.Read'],
64+
write: ['api://Enter_the_Web_Api_Application_Id_Here/ToDoList.ReadWrite'],
6965
},
7066
},
7167
};

0 commit comments

Comments
 (0)