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

Improve Performance of LoginInfoEndpoint #3141

Merged
merged 15 commits into from
Nov 22, 2024

Conversation

adrianhoelzl-sap
Copy link
Contributor

The method SamlIdentityProviderConfigurator.getIdentityProviderDefinitionsForZone (called during the evaluation of a request to /login) returns the configurations of all SAML IdPs in an identity zone. Instead of specifying a condition on the type column of the identity_provider table, it reads all (active) IdPs of the identity zone and filters them in the Java code.

This PR fixes the lookup of SAML IdPs by moving the filtering for the SAML type to the query and introducing an index on the columns identity_zone_id, active and type of the identity_provider table.

@adrianhoelzl-sap adrianhoelzl-sap force-pushed the improve-performance-of-login-info-endpoint branch from f0b3408 to df0a444 Compare November 18, 2024 12:48
@adrianhoelzl-sap adrianhoelzl-sap requested review from strehle, tack-sap and a team November 18, 2024 13:50
Copy link
Member

@duanemay duanemay left a comment

Choose a reason for hiding this comment

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

👍

@strehle strehle requested a review from duanemay November 21, 2024 16:59
@adrianhoelzl-sap adrianhoelzl-sap merged commit 5b42f0e into develop Nov 22, 2024
22 checks passed
@adrianhoelzl-sap adrianhoelzl-sap deleted the improve-performance-of-login-info-endpoint branch November 22, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants