Skip to content

Commit a6796b2

Browse files
authored
Merge pull request #28 from FusionAuth/27-build-out-example-postLogOutRedirectUri-routing
27 Build Out Example postLogoutRedirectUri Routing
2 parents dc23477 + dc570a0 commit a6796b2

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

complete-application/src/app/app.module.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ import { authGuard } from './auth-guard';
2323
),
2424
canActivate: [authGuard(false, '/account')],
2525
},
26+
{
27+
path: 'logged-out',
28+
loadComponent: () =>
29+
import('./home-page/home-page.component').then(
30+
(m) => m.HomePageComponent
31+
),
32+
canActivate: [authGuard(false, '/account')],
33+
},
2634
{
2735
path: 'account',
2836
loadComponent: () =>
@@ -46,6 +54,7 @@ import { authGuard } from './auth-guard';
4654
clientId: 'e9fdb985-9173-4e01-9d73-ac2d60d1dc8e',
4755
serverUrl: 'http://localhost:9011',
4856
redirectUri: 'http://localhost:4200',
57+
postLogoutRedirectUri: 'http://localhost:4200/logged-out',
4958
scope: 'openid email profile offline_access',
5059
shouldAutoRefresh: true,
5160
}),

kickstart/kickstart.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"variables": {
33
"allowedOrigin": "http://localhost:4200",
44
"authorizedRedirectURL": "http://localhost:4200",
5+
"authorizedPostLogoutURL": "http://localhost:4200/logged-out",
56
"authorizedOriginURL": "http://localhost:4200",
67
"logoutURL": "http://localhost:4200",
78
"applicationId": "e9fdb985-9173-4e01-9d73-ac2d60d1dc8e",
@@ -90,6 +91,7 @@
9091
"name": "Example app",
9192
"oauthConfiguration": {
9293
"authorizedRedirectURLs": [
94+
"#{authorizedPostLogoutURL}",
9395
"#{authorizedRedirectURL}"
9496
],
9597
"authorizedOriginURLs": [

0 commit comments

Comments
 (0)