diff --git a/selfservice/flow/login/handler.go b/selfservice/flow/login/handler.go index fe76240b5221..d86641470ef0 100644 --- a/selfservice/flow/login/handler.go +++ b/selfservice/flow/login/handler.go @@ -337,6 +337,13 @@ type createNativeLoginFlow struct { // in: query ReturnTo string `json:"return_to"` + // An optional organization ID that should be used for logging this user in. + // This parameter is only effective in the Ory Network. + // + // required: false + // in: query + Organization string `json:"organization"` + // Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. // // DEPRECATED: This field is deprecated. Please remove it from your requests. The user will now see a choice diff --git a/selfservice/flow/registration/handler.go b/selfservice/flow/registration/handler.go index ee3e23ba144f..de52abefd5a7 100644 --- a/selfservice/flow/registration/handler.go +++ b/selfservice/flow/registration/handler.go @@ -237,6 +237,13 @@ type createNativeRegistrationFlow struct { // // in: query ReturnTo string `json:"return_to"` + + // An optional organization ID that should be used to register this user. + // This parameter is only effective in the Ory Network. + // + // required: false + // in: query + Organization string `json:"organization"` } // Create Browser Registration Flow Parameters @@ -274,6 +281,9 @@ type createBrowserRegistrationFlow struct { // in: query AfterVerificationReturnTo string `json:"after_verification_return_to"` + // An optional organization ID that should be used to register this user. + // This parameter is only effective in the Ory Network. + // // required: false // in: query Organization string `json:"organization"`