Skip to content

Commit d6d469f

Browse files
committed
remove creds
1 parent 9a4301e commit d6d469f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

1-Authentication/1-sign-in/SPA/src/app/auth-config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const isIE = window.navigator.userAgent.indexOf("MSIE ") > -1 || window.navigato
1616
*/
1717
export const msalConfig: Configuration = {
1818
auth: {
19-
clientId: '707c146e-6703-412a-bc2c-feb7f634feed', // This is the ONLY mandatory field that you need to supply.
20-
authority: 'https://login.microsoftonline.com/cbaf2168-de14-4c72-9d88-f5f05366dbef', // Defaults to "https://login.microsoftonline.com/common"
19+
clientId: 'Enter_the_Application_Id_Here', // This is the ONLY mandatory field that you need to supply.
20+
authority: 'https://login.microsoftonline.com/Enter_the_Tenant_Info_Here', // Defaults to "https://login.microsoftonline.com/common"
2121
redirectUri: '/', // Points to window.location.origin. You must register this URI on Azure Portal/App Registration.
2222
postLogoutRedirectUri: '/', // Indicates the page to navigate after logout.
2323
navigateToLoginRequestUrl: true, // If "true", will navigate back to the original request location before processing the auth code response.

2-Authorization-I/1-call-graph/SPA/src/app/auth-config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const isIE = window.navigator.userAgent.indexOf("MSIE ") > -1 || window.navigato
1616
*/
1717
export const msalConfig: Configuration = {
1818
auth: {
19-
clientId: '707c146e-6703-412a-bc2c-feb7f634feed', // This is the ONLY mandatory field that you need to supply.
20-
authority: 'https://login.microsoftonline.com/cbaf2168-de14-4c72-9d88-f5f05366dbef', // Defaults to "https://login.microsoftonline.com/common"
19+
clientId: 'Enter_the_Application_Id_Here', // This is the ONLY mandatory field that you need to supply.
20+
authority: 'https://login.microsoftonline.com/Enter_the_Tenant_Info_Here', // Defaults to "https://login.microsoftonline.com/common"
2121
redirectUri: '/', // Points to window.location.origin. You must register this URI on Azure Portal/App Registration.
2222
},
2323
cache: {
@@ -57,5 +57,5 @@ export const protectedResources = {
5757
* https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent#openid-connect-scopes
5858
*/
5959
export const loginRequest = {
60-
scopes: [...protectedResources.armTenants.scopes]
60+
scopes: ["User.Read"]
6161
};

0 commit comments

Comments
 (0)