Skip to content

Commit

Permalink
CB-4039 logout extended
Browse files Browse the repository at this point in the history
  • Loading branch information
s.teleshev committed Jan 16, 2024
1 parent a547a29 commit 2d943a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions webapp/packages/core-authentication/src/UserInfoResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,16 @@ export class UserInfoResource extends CachedDataResource<UserInfo | null, void,
}

async logout(provider?: string, configuration?: string): Promise<void> {
const { authLogout } = await this.graphQLService.sdk.authLogout({
const { authLogoutExtended } = await this.graphQLService.sdk.authLogout({
provider,
configuration,
});

// TODO handle all redirect links once we know what to do with multiple popups issue
const redirectLinks = authLogout?.redirectLinks || [];
const redirectLinks = authLogoutExtended?.redirectLinks || [];

if (redirectLinks.length) {
const oktaLink = authLogout?.redirectLinks[0];
const oktaLink = authLogoutExtended?.redirectLinks[0];
const id = `okta-logout-id-${getUniqueId()}`;

this.windowsService.open(id, {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
query authLogout($provider: ID, $configuration: ID) {
authLogout(provider: $provider, configuration: $configuration) {
authLogoutExtended(provider: $provider, configuration: $configuration) {
redirectLinks
}
}

0 comments on commit 2d943a5

Please sign in to comment.