You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that organization is an Ory Network feature, but it seems feasible to work with in self-hosted mode.
As I have a large number of OIDC configurations, I'd like to filter them to avoid returning an excessive amount of data.
By examining the schemas, I can see that it's possible to pass configuration IDs in the OIDC configuration within the Kratos configuration file.
Then, I should be able to use these IDs with the 'organization' parameter of the /self-service/login/browserendpoint (which creates login flows for browsers). However, the nodes in the response contain all OIDC providers, not just the ones matching the specified ID
Reproducing the bug
Setup
In the self-hosted instance:
Configure Kratos with two IDPs (Identity Providers).
Add organization_id in selfservice.methods.oidc.config.provider.*.organization_id for both OIDC configurations.
Steps to Reproduce
Call for the creation of the browser login flow with one organization id:
curl --request GET \
--url '[http://localhost:4433/self-service/login/browser?organization=8cd99b5d-4ca5-46df-bf94-90f3835d2b69'](http://localhost:4433/self-service/login/browser?organization=8cd99b5d-4ca5-46df-bf94-90f3835d2b69%27)
Expected Result
ui.nodes should be an array with two items:
Anti-CSRF token
OIDC configuration (matching the provided organization id)
Actual Result
ui.nodes contains:
All OIDC providers
The anti-CSRF token
Additional Notes
This behavior suggests that the organization parameter in the login flow creation endpoint is not correctly filtering the OIDC providers based on the organization_id specified in the Kratos configuration.
Preflight checklist
Ory Network Project
No response
Describe the bug
I know that organization is an Ory Network feature, but it seems feasible to work with in self-hosted mode.
As I have a large number of OIDC configurations, I'd like to filter them to avoid returning an excessive amount of data.
By examining the schemas, I can see that it's possible to pass configuration IDs in the OIDC configuration within the Kratos configuration file.
Then, I should be able to use these IDs with the 'organization' parameter of the
/self-service/login/browser
endpoint (which creates login flows for browsers). However, the nodes in the response contain all OIDC providers, not just the ones matching the specified IDReproducing the bug
Setup
In the self-hosted instance:
organization_id
inselfservice.methods.oidc.config.provider.*.organization_id
for both OIDC configurations.Steps to Reproduce
Expected Result
ui.nodes
should be an array with two items:Actual Result
ui.nodes
contains:Additional Notes
This behavior suggests that the
organization
parameter in the login flow creation endpoint is not correctly filtering the OIDC providers based on theorganization_id
specified in the Kratos configuration.Relevant log output
No response
Relevant configuration
Version
v1.2.0
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Kubernetes with Helm
Additional Context
No response
The text was updated successfully, but these errors were encountered: