Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CB-4039 logout with context #2296

Merged
merged 16 commits into from
Jan 17, 2024
Merged

CB-4039 logout with context #2296

merged 16 commits into from
Jan 17, 2024

Conversation

alexander-skoblikov
Copy link
Collaborator

No description provided.

Comment on lines +150 to +152
# Same as #authLogout, but returns additional information
@since(version: "23.3.3")
authLogoutExtended(provider: ID, configuration: ID): LogoutInfo!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not clear what Extended suffix means especially if we will remove authLogout

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alexander decided authLogout function to be for a while for back backward compatibility. so this is why we have new function with Extended suffix

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

problem is that Extended means nothing this is not good suffix for api
authLogoutInfo sound better

webapp/packages/core-utils/src/getUniqueId.ts Outdated Show resolved Hide resolved
@sergeyteleshev sergeyteleshev requested a review from Wroud January 17, 2024 10:44
Comment on lines 110 to 124
// TODO handle all redirect links once we know what to do with multiple popups issue
const {
authLogoutExtended: { redirectLinks },
} = await this.userInfoResource.logout(providerId, configurationId);

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

this.windowsService.open(id, {
url: oktaLink,
width: 400,
height: 400,
});
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this logic must replace

if (userAuthConfiguration?.configuration.signOutLink) {
      this.logoutConfiguration(userAuthConfiguration);
    }

we need to rewrite or remove it or change and maybe to change logoutConfiguration

@sergeyteleshev sergeyteleshev requested a review from Wroud January 17, 2024 13:51
@serge-rider serge-rider merged commit 0544547 into devel Jan 17, 2024
4 of 5 checks passed
@serge-rider serge-rider deleted the CB-4039-logout-with-context branch February 21, 2024 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants