@workos-inc/widgets
v1.24.1
Published
A suite of React components providing functionality for enterprise app workflows.
Maintainers
Keywords
Readme
WorkOS Widgets
A suite of React components providing functionality for enterprise app workflows.
Shared Pipes credentials
PipesAdmin defaults to provider settings only. Opt in to shared connections
with enableSharedConnections. User-backed widget sessions and AuthKit user
access tokens attribute shared API-key and client-credentials writes to the
signed-in user without any new host prop.
Hosts using an application credential token must pass the acting person's WorkOS user ID programmatically when connecting, rotating, or repairing shared credentials:
<PipesAdmin
authToken={applicationCredentialToken}
enableSharedConnections
userId={authenticatedWorkOsUser.id}
/>Source authenticatedWorkOsUser.id from the host's authenticated user context
or an existing mapping to that WorkOS user (user_...), not an arbitrary
application-local ID or the credential token's subject. userId is an optional
React prop, never a rendered field or member picker. A missing actor blocks
these shared credential writes with configuration guidance, while reads,
provider configuration, and OAuth flows remain available. User-session hosts
should omit the prop; a different ID is rejected. Standalone widget sessions
cannot supply an actor through this prop.
An authorized application caller asserts whom it acts on behalf of. Passing
userId does not authenticate that person or grant write access: the API still
validates permissions, identity, and active membership of the token-scoped
organization. If there is no acting person, do not fabricate one; machine-managed
credentials require separate policy support.
Upgrade and rollout
Before upgrading application-token hosts, supply userId from their authenticated
user context for shared credential actions. User-session hosts require no changes.
Publish this widget change only after the deployed Widgets GraphQL API accepts
userId on both organization credential inputs (PVIT-1079). Subsequent server-side
required-actor enforcement (PVIT-1081) also requires operator confirmation of the
affected hosts' upgrade and communication plan; publication alone does not prove
adoption.
