This diagram illustrates the OAuth authentication flow for third-party integrations (e.g., Hubspot) within the Remix Desktop application.
The OAuth process begins when a user is configuring a widget in an artifact view and needs to authenticate with a third-party service. The flow uses a popup window pattern to handle the OAuth authentication without disrupting the main configuration interface.
oauth_signin screen within _rmx_artifact.oauth_signin screen acts as middleware, executing an open link action to redirect the popup to the third-party OAuth URL.confirmation screen in _rmx_artifact. This screen performs two critical actions:
For this OAuth flow to function properly, _rmx_artifact must include two required screens:
oauth_signin - Middleware screen that handles the redirect to third-party OAuth URLsconfirmation - Handles post-authentication cleanup by publishing the completion message and closing the popupThese screens can be found at: https://remix.remixlabs.com/e/edit/_rmx_artifact