Kong / Kong/insomnia

OAuth2 auth code flow

Open
#3,443 10 comments 4 reactions 0 assignees View on GitHub
B-bug needs-triage S-verified waiting-for-team
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

**Describe the bug**
OAuth2 does not work with Google. Have tried both the authorization code flow and implicit grant flow, and both have the same error. The OAuth2 client credentials type in the Google console is "Web application".

```
This browser or app may not be secure.

Try using a different browser. If you’re already using a supported browser, you can refresh your screen and try again to sign in.
```

**To Reproduce**
Steps to reproduce the behavior:
1. Use a request using oAuth2
2. Use Google as the identity provider for sign in

**Expected behavior**
It should work.

**Screenshots**
![image](https://user-images.githubusercontent.com/53049/120669350-6034ae80-c45d-11eb-87e3-75720818b5f4.png)

**Desktop (please complete the following information):**
- OS: Linux
- Installation Method: Flatpak
- App Version: 2021.3.0

**Additional context**
Same issue as https://github.com/Kong/insomnia/issues/2185.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by reproducing the OAuth2 Google sign-in flow in Insomnia 2021.3.0 on Linux via Flatpak and compare the authorization-code and implicit-grant behavior; done means Google sign-in succeeds without the reported browser-security error.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.