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

Introduce optional Cache for Login Info IdPs #3251

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

adrianhoelzl-sap
Copy link
Contributor

Introduce a cache for the SAML or OAuth identity providers returned in the login info endpoint. By default, the cache is disabled.

If enabled, the cached IdPs are neither synchronized between the different UAA instances and are not invalidated whenever an IdP is created, updated or deleted. Therefore, during a cache period, the returned set might be inconsistent.

@adrianhoelzl-sap adrianhoelzl-sap force-pushed the introduce-cache-for-login-info-idps branch 3 times, most recently from 90eb364 to 07df897 Compare January 21, 2025 16:06
@adrianhoelzl-sap adrianhoelzl-sap marked this pull request as ready for review January 21, 2025 16:34
@strehle
Copy link
Member

strehle commented Jan 21, 2025

I am not convinced about cache here... in the past there were several PR´s from you in order to optimize the logic and I thought now we don't have situations ( only error situations ) where all IdPs are fetched ( means select * from identity_provider XXX)

Instead of caching IdPs I would work on #3145 and would Disable option allowOriginLoop , see
https://github.com/cloudfoundry/uaa/blob/develop/model/src/main/java/org/cloudfoundry/identity/uaa/zone/UserConfig.java#L86-L87, so that either you login with origin or issuer or error. no further lookup to all IDPs from type SAML / OIDC / OAUTH etc.

@adrianhoelzl-sap adrianhoelzl-sap force-pushed the introduce-cache-for-login-info-idps branch from 07df897 to 0a3e62d Compare January 31, 2025 10:17
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