The Connection.Triggers.Authorize
component provides low-level control over connection authorization flows.
The Connection.Triggers.Authorize
component handles the connection authorization flow. It provides:
A valid React element that will trigger the authorization action. Must accept
onClick
and onKeyDown
event handlers.
A session token for the connection. Can be provided via props or through a
Connection.Provider
context.
Determines how the authorization window is opened: - popup
: Opens in a new
window (default) - redirect
: Redirects the current window
The connection mode to use: - connect
: Standard OAuth connection flow -
direct
: Direct connection without OAuth
The URL where the user will be redirected after authorization. Required when
windowMode
is set to redirect
.
Additional settings to pass to the connection authorization flow.
When using windowMode="popup"
, the component:
Default popup configuration:
The component supports internationalization for error messages through:
triggers.authorize.errors.missingToken
triggers.authorize.errors.missingMethod
triggers.authorize.errors.popupBlocked
triggers.authorize.errors.noAuthUrl
triggers.authorize.errors.invalidChildren