Skip to content

chore: Update example app to autoStart on oauth

Paul Slaughter requested to merge ps-add-example-app-autostart into main

Description (from commit)

  • This fixes the issue where the config UI pops up after a successful oauth handshake
  • We do this by knowing that the handshake state is loaded into "localStorage" and updating the "originalUrl" with "autoStart" param

Screenshot

  1. PLEASE NOTE! There's a known OAuth bug. Please cherry-pick fix(oauth): Use url safe base64 (!258 - merged) when testing this locally.
  2. Follow these steps to create an OAuth application in your local GDK.
  3. Use localStorage.removeItem('gitlab/web-ide/oauth/...OAUTH_CLIENT_ID.../token') in your browser console to clear the saved token and require an OAuth handshake.
  4. Notice that after the OAuth handshake the Web IDE auto starts instead of reshowing the config UI.
Before After
20231110_example_app_autostart_before 20231110_example_app_autostart_after
Edited by Paul Slaughter

Merge request reports