Skip to content

Commit

Permalink
Merge branch '2362-okta' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bizz committed Dec 19, 2023
2 parents 1e4d0f7 + 9cdc70a commit b201865
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/common/app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ export const appConfig = /* @ngInject */ function (envServiceProvider, $compileP
acsUrl: 'https://cru-mkt-stage1.adobe-campaign.com/lp/LP63?_uuid=f1938f90-38ea-41a6-baad-9ac133f6d2ec&service=%404k83N_C5RZnLNvwz7waA2SwyzIuP6ATcN8vJjmT5km0iZPYKUUYk54sthkZjj-hltAuOKDYocuEi5Pxv8BSICoA4uppcvU_STKCzjv9RzLpE4hqj&pkey=',
isBrandedCheckout: false,
oktaUrl: 'https://signon.okta.com',
oktaClientId: '0oa1p8kb6gr1IGGdc0h8'
oktaClientId: '0oa1p8kb6gr1IGGdc0h8',
oktaReferrer: 'https://give-stage2.cru.org'
},
nonprod: {
apiUrl: 'https://give-stage2-next.cru.org',
Expand Down
6 changes: 1 addition & 5 deletions src/common/services/session/session.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,11 @@ const session = /* @ngInject */ function ($cookies, $rootScope, $http, $timeout,
withCredentials: true
})
await clearCheckoutSavedData()
await authClient.revokeAccessToken()
await authClient.revokeRefreshToken()
await authClient.closeSession()

// Add session data so on return to page we can show an explaination to the user about what happened.
if (!redirectHome) {
$window.sessionStorage.setItem('forcedUserToLogout', true)
}
authClient.signOut({
return authClient.signOut({
postLogoutRedirectUri: redirectHome ? null : $window.location.href
})
} catch {
Expand Down

0 comments on commit b201865

Please sign in to comment.