Skip to content

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 a team, strehle and tack-sap 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
20 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