Skip to content

Commit 84bd22c

Browse files
Merge pull request awslabs#289 from alex-chew/fix-dev-mode-login-logout-redirect
Fix dev mode login/logout redirect
2 parents 0378040 + 1239363 commit 84bd22c

36 files changed

+722
-2996
lines changed

cloudformation/template.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,20 +1121,20 @@ Resources:
11211121
SupportedIdentityProviders: [ "COGNITO" ] # should (eventually) allow people to add values
11221122
CallbackURL: !If [ DevelopmentMode,
11231123
[
1124-
'http://localhost:3000/login',
1125-
!Join [ '', [ 'https://', !GetAtt DevPortalSiteS3Bucket.RegionalDomainName ]]
1124+
'http://localhost:3000/index.html?action=login',
1125+
!Join [ '', [ 'https://', !GetAtt DevPortalSiteS3Bucket.RegionalDomainName, '/index.html?action=login' ]]
11261126
],
11271127
[
1128-
!Join [ '', [ 'https://', !If [ UseCustomDomainName, !Ref CustomDomainName, !GetAtt DefaultCloudfrontDistribution.DomainName ], '/login' ]]
1128+
!Join [ '', [ 'https://', !If [ UseCustomDomainName, !Ref CustomDomainName, !GetAtt DefaultCloudfrontDistribution.DomainName ], '/index.html?action=login' ]]
11291129
]
11301130
]
11311131
LogoutURL: !If [ DevelopmentMode,
11321132
[
1133-
'http://localhost:3000',
1134-
!Join [ '', [ 'https://', !GetAtt DevPortalSiteS3Bucket.RegionalDomainName]]
1133+
'http://localhost:3000/index.html?action=logout',
1134+
!Join [ '', [ 'https://', !GetAtt DevPortalSiteS3Bucket.RegionalDomainName, '/index.html?action=logout' ]]
11351135
],
11361136
[
1137-
!Join [ '', [ 'https://', !If [ UseCustomDomainName, !Ref CustomDomainName, !GetAtt DefaultCloudfrontDistribution.DomainName ]]]
1137+
!Join [ '', [ 'https://', !If [ UseCustomDomainName, !Ref CustomDomainName, !GetAtt DefaultCloudfrontDistribution.DomainName ], '/index.html?action=logout' ]]
11381138
]
11391139
]
11401140
AllowedOAuthFlowsUserPoolClient: true

0 commit comments

Comments
 (0)