Skip to main content
The Connection.Triggers.Authorize component handles the connection authorization flow. It provides:
  • Custom authorization UI integration
  • Popup and redirect authorization modes
  • Comprehensive callback system
  • Connection state management
  • Automatic popup window handling

Installation

Usage

Props

ReactElement
required
A valid React element that will trigger the authorization action. Must accept onClick and onKeyDown event handlers.
string
required
A session token for the connection. Can be provided via props or through a Connection.Provider context.
popup|redirect
default:"popup"
Determines how the authorization window is opened: - popup: Opens in a new window (default) - redirect: Redirects the current window
direct|connect
default:"connect"
The connection mode to use: - connect: Standard OAuth connection flow - direct: Direct connection without OAuth
string
The URL where the user will be redirected after authorization. Required when windowMode is set to redirect.
object
Additional settings to pass to the connection authorization flow.
object
When using windowMode="popup", the component:
  1. Checks if popups are allowed
  2. Centers the popup window on screen
  3. Uses standard dimensions (600x800)
  4. Monitors popup state
  5. Handles connection status updates
Default popup configuration:

Internationalization

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