-
Notifications
You must be signed in to change notification settings - Fork 841
info endpoint providers #3614
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
info endpoint providers #3614
Conversation
|
|
||
| if (jsonResponse && request.getRequestURI().endsWith("/info")) { | ||
| List<Map<String, String>> infoIdentityProviders = new java.util.ArrayList<>(); | ||
| providerProvisioning.retrieveAll(true, IdentityZoneHolder.get().getId()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have tweaked this endpoint the last years not to retrrieve always all IdP because we (SAP) have many IdPs in one zone and with cf login there is the situation, that /info is called before the login and with that we had DB issues
@torsten-sap correct or is my assumption no longer valid ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds like a property to explicit enable this feature is needed, with the default being set to false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
problem is that we had many changes in this area, some because to fix DB performance, and later some to repair some regressions, we should discuss in meeting
| if (jsonResponse && request.getRequestURI().endsWith("/info")) { | ||
| List<Map<String, String>> infoIdentityProviders = new java.util.ArrayList<>(); | ||
| providerProvisioning.retrieveAll(true, IdentityZoneHolder.get().getId()) | ||
| .forEach(provider -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we have to filter , because SAML and OAUTH use a property to determine if visible or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thetrue in retrieveAll(true is that property, isn't it? It means active providers only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not only acitve, but only provider with either
- showSamlLink
- showLinkText
16ab7ce to
c257135
Compare
|
I am abandoning this effort. We're going a different route for the use case. No need to add more complexity to /login and /info |
We'd like a bit more public visibility into the federation of providers in the /info endpoint. This PR displays an JSON object named
providerswith three attributes (name, origin, type) on the /info endpoint when JSON is requested.You can today, go to the /login page, and extract origins for both SAML and OIDC providers, so we do believe it is ok to display this information.
To be discussed September 11, 2025 in UAA meeting