Skip to content

fix(auth): pass JWT token via URL for Electron/mobile OIDC callback#630

Open
jozefrebjak wants to merge 1 commit intoTermix-SSH:mainfrom
jozefrebjak:fix/oidc-jwt-electron-token
Open

fix(auth): pass JWT token via URL for Electron/mobile OIDC callback#630
jozefrebjak wants to merge 1 commit intoTermix-SSH:mainfrom
jozefrebjak:fix/oidc-jwt-electron-token

Conversation

@jozefrebjak
Copy link

After OIDC login on Electron desktop or mobile app, the JWT token was not being stored — resulting in jwt = undefined and broken terminal connections.

The fix adds the JWT token as a URL parameter during the OIDC callback redirect for desktop/mobile device types. The Electron and mobile Auth components then read this token from the URL and store it in localStorage.

Web browser login is not affected — token is only passed via URL for Electron and React Native webview contexts.

This still needs to be tested on macOS Electron app and mobile app before merging.

Closes Termix-SSH/Support#562
Related: #414, #465

…back

The OIDC callback redirect did not include the JWT token as a URL
parameter for desktop/mobile device types, causing Electron and
React Native webviews to have jwt = undefined after login.

Closes Termix-SSH/Support#562
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] OIDC login on macOS Desktop app - JWT token undefined, terminal not working

1 participant