ory / kratos

The most scalable and customizable identity server on the market. Replace your Homegrown, Auth0, Okta, Firebase with better UX and DX. Has all the tablestakes: Passkeys, Social Sign In, Multi-Factor Auth, SMS, SAML, TOTP, and more. Written in Go, cloud native, headless, API-first. Available as a service on Ory Network and for self-hosters.
https://www.ory.sh/?utm_source=github&utm_medium=banner&utm_campaign=kratos
Apache License 2.0
11.33k stars 963 forks source link

`organization` parameter for `self-service` native flow endpoints in SDKs and docs #4175

Closed Sese-Schneider closed 1 month ago

Sese-Schneider commented 1 month ago

Preflight checklist

Ory Network Project

https://gracious-hypatia-b9te8t22yp.projects.oryapis.com

Describe the bug

The organization parameter for self-service flows using the browser flows is available (login/registration) in the SDKs and documented.

However, the parameter is not available for the native flows.

Looking at the implementation I found out that the parameter would be technically supported without any code change required. I've confirmed my findings by testing the API, finding that indeed the organization parameter is processed:

image

It also returns the correct Enterprise SSO authentication methods.

Please document the usage and update the SDKs to include this functionality for login and registration

Reproducing the bug

  1. Send a self-service/login/api or self-service/registration/api request and include the organization parameter.
  2. It should work, while not being documented or available in the SDKs

Relevant log output

No response

Relevant configuration

No response

Version

network

On which operating system are you observing this issue?

None

In which environment are you deploying?

Ory Network

Additional Context

No response