Handles OAuth2 PKCE authentication flow with CSIAPPS, managing user tokens and info, and providing a consistent authentication status UI.
Usage
server_wrapper(app_specific_logic, sandbox = is_sandbox_mode())Arguments
- app_specific_logic
Existing server logic of shiny web application
- sandbox
If TRUE, the real OAuth2 redirect is skipped and the session is seeded from the developer's existing
CSIAPPS_ACCESS_TOKEN, so a wrapped app can be run locally without client credentials. If no token is set, the app shell renders with an unauthenticated notice. Defaults tois_sandbox_mode(), which is TRUE by default. Disable it for deployment withoptions(csiapps.sandbox = FALSE)(orCSIAPPS_ENV=production) to use the real login flow. See csiapps-sandbox for details and limitations.
