Skip to content

Proposal: Authenticate through user's installed browser #3583

@flotwig

Description

@flotwig

Current behavior:

Logging in with GitHub opens the Oauth authorize page in Cypress's packaged Electron, which causes issues:

Desired behavior:

Logging in with GitHub through the desktop app opens a tab in the user's default system browser where they can authorize our app

Could be built by creating a HTTP server on localhost to accept auth redirects: https://stackoverflow.com/questions/37546656/handling-oauth2-redirect-from-electron-or-other-desktop-platforms

Or by creating a custom protocol handler and setting the GH redirect URL to that: https://glebbahmutov.com/blog/electron-app-with-custom-protocol/ Won't work, registering a custom protocol globally usually requires advanced permissions.

Metadata

Metadata

Assignees

Labels

type: enhancementRequested enhancement of existing feature

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions