Skip to content

Commit

Permalink
docs: usage of organization parameter in native self-service flows (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Sese-Schneider authored Oct 29, 2024
1 parent 5bf46cb commit cb71e38
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions selfservice/flow/login/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions selfservice/flow/registration/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"`
Expand Down

0 comments on commit cb71e38

Please sign in to comment.