[ResponseOps][Connectors] Add authMode to connector saved objects and apis#252262
Conversation
|
Addressing the question form #252064 (comment)
Good question :) This PR adds a new
Yes, this is mainly relevant for OAuth-based connectors where we want to support per-user authorization flows in the future. Updated the PR description to avoid confusion. |
d79a818 to
36e9a9f
Compare
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]
History
|
Summary
Resolves #250976
This PR introduces a new authMode attribute for connectors that allows configuring authentication modes as either shared (default) or per-user. This enables support for different authentication patterns where connectors can use:
Note: The
per-usermode is primarily intended for OAuth-based connectors where each user will authenticate with their own account. Implementing the actual per-user credential storage and OAuth flows is not part of this PR.At this stage, both modes use the same single-credential storage. The
per-userflag is a declaration of intent for future OAuth capabilities.Key Changes
authModefield supportauthMode: 'shared'for existing connectors that haveconfig.authTypesetChecklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:*label is applied per the guidelinesbackport:*labels.Release note:
Create a connector with auth_mode attribute