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 IdP Lookup during Password Grant #3161

Conversation

adrianhoelzl-sap
Copy link
Contributor

@adrianhoelzl-sap adrianhoelzl-sap commented Nov 27, 2024

Optimize the lookup of IdPs during password grant flow: whenever "uaa" or "ldap" is used as a login hint, we no longer read all active IdPs in the identity zone but rather only the single one.

@adrianhoelzl-sap adrianhoelzl-sap force-pushed the improve-performance-of-idp-lookup-during-password-grant branch from dd58a01 to a87e775 Compare November 27, 2024 14:19
@adrianhoelzl-sap adrianhoelzl-sap marked this pull request as ready for review November 28, 2024 10:21
@adrianhoelzl-sap adrianhoelzl-sap requested review from a team, tack-sap and strehle November 28, 2024 10:22
strehle added a commit that referenced this pull request Nov 28, 2024
@strehle
Copy link
Member

strehle commented Nov 28, 2024

please have a look on Refactoring from #3165

this PR here increases the code complexity but I tried in #3165 to reduce complexity and removed the not needed interface:
ExternalOAuthProviderConfigurator externalOAuthProviderProvisioning

because we have the generic one with "IdentityProviderProvisioning identityProviderProvisioning"

In 2nd PR I added your tests, see #3168

because for retrieveByOrigin it does not matter if externalOAuthProviderProvisioning or identityProviderProvisioning.
Both call providerProvisioning.retrieveByOrigin, therefore removed externalOAuthProviderProvisioning and tried to be more generic with refactoring from #3165

strehle added a commit that referenced this pull request Nov 28, 2024
strehle added a commit that referenced this pull request Nov 29, 2024
* Refactor password grant

* if origin is available, retrieve IdP and check if password can be used
* use always identityProviderProvisioning and remove externalOAuthProviderConfigurator

* review

* Use and include test from (#3168)

#3161
@adrianhoelzl-sap
Copy link
Contributor Author

closing in favor of #3165

@adrianhoelzl-sap adrianhoelzl-sap deleted the improve-performance-of-idp-lookup-during-password-grant branch November 29, 2024 10:12
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.

2 participants