Skip to content

Commit e7cd28e

Browse files
committed
2 parents 50e8938 + fea6955 commit e7cd28e

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

3-Authorization-II/1-call-api/AppCreationScripts/Configure.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ Function ConfigureApplications
276276
$clientAadApplication = New-MgApplication -DisplayName "msal-angular-spa" `
277277
-Spa `
278278
@{ `
279-
RedirectUris = "http://localhost:4200"; `
279+
RedirectUris = "http://localhost:4200/", "http://localhost:4200/auth"; `
280280
} `
281281
-SignInAudience AzureADMyOrg `
282282
#end of command

3-Authorization-II/1-call-api/AppCreationScripts/sample.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"Kind": "SinglePageApplication",
6666
"Audience": "AzureADMyOrg",
6767
"HomePage": "https://localhost:4200",
68-
"ReplyUrls": "http://localhost:4200",
68+
"ReplyUrls": "http://localhost:4200, https://localhost:4200/auth",
6969
"Sample": {
7070
"SampleSubPath": "3-Authorization-II\\1-call-api\\SPA",
7171
"ProjectDirectory": "\\1-call-api\\SPA"

3-Authorization-II/1-call-api/SPA/src/app/app.component.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ a.title {
77
}
88

99
footer {
10-
position: absolute;
10+
position: fixed;
11+
left: 0;
1112
bottom: 0;
1213
width: 100%;
14+
color: white;
15+
text-align: center;
1316
}
1417

1518
.footer-text {

3-Authorization-II/1-call-api/SPA/src/app/auth-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const msalConfig: Configuration = {
1818
auth: {
1919
clientId: 'Enter_the_Application_Id_Here', // This is the ONLY mandatory field that you need to supply.
2020
authority: 'https://login.microsoftonline.com/Enter_the_Tenant_Info_Here', // Defaults to "https://login.microsoftonline.com/common"
21-
redirectUri: '/', // Points to window.location.origin by default. You must register this URI on Azure portal/App Registration.
21+
redirectUri: '/auth', // Points to window.location.origin by default. You must register this URI on Azure portal/App Registration.
2222
postLogoutRedirectUri: '/', // Points to window.location.origin by default.
2323
clientCapabilities: ['CP1'] // This lets the resource server know that this client can handle claim challenges.
2424
},

0 commit comments

Comments
 (0)