-
Notifications
You must be signed in to change notification settings - Fork 34
fix: add invitation_token parameter to authentication methods
#438
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
Conversation
9239c9e to
58eb71d
Compare
invitation_token parameter to authentication methodsinvitation_token parameter to authentication methods
Greptile OverviewGreptile SummaryThis PR adds an optional Key integration point is Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant App as App (workos-ruby)
participant UM as WorkOS::UserManagement
participant Client as WorkOS::Client
participant API as WorkOS API
App->>UM: authenticate_with_password(..., invitation_token)
UM->>Client: post_request(path:"/user_management/authenticate", body:{..., invitation_token})
Client->>API: HTTPS POST /user_management/authenticate (JSON)
API-->>Client: 2xx response (tokens + user)
Client-->>UM: response
UM-->>App: AuthenticationResponse
App->>UM: authenticate_with_code(..., invitation_token)
UM->>Client: post_request(... body includes invitation_token)
Client->>API: HTTPS POST /user_management/authenticate
API-->>Client: 2xx response
Client-->>UM: response
UM-->>App: AuthenticationResponse
App->>UM: authenticate_with_magic_auth(..., invitation_token)
UM->>Client: post_request(... body includes invitation_token)
Client->>API: HTTPS POST /user_management/authenticate
API-->>Client: 2xx response
Client-->>UM: response
UM-->>App: AuthenticationResponse
|
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.
2 files reviewed, 2 comments
Additional Comments (1)
These methods always include |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore(main): release workos 6.1.0 * chore: add missing changelog entry for invitation_token fix (#438) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: workos-sdk-automation[bot] <255426317+workos-sdk-automation[bot]@users.noreply.github.com> Co-authored-by: Garen J. Torikian <gjtorikian@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Description
Based on the WorkOS API documentation, this kwarg is missing.
Closes #337
Documentation
Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.
If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.