question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] OAuth 2 missing Identity token.

See original GitHub issue
  • Insomnia Version: 6.2.3
  • Operating System: Mac OSX

Details

OAuth specification document provides two kinds of token, access token and identity token, The Insomnia OAuth 2 module works beautifully for most of the things as it exposes and uses the Access_token (in addition to refresh_token) which is used more often, there are a few oddballs however that need identity_token for certain calls, like AWS Cognito User pool integration with API Gateway:

To authenticate requests to API-Gateway endpoints that are protected by AWS Cognito Authorizers, the access_token will not work! but the identity_token which is included in the same response body that provides the access_token works! ( although access_token works to make calls to Cognito endpoints itself!! but anyways! )

I think it would be great if we provide this functionality as AWS is a big player and this will come handy in a lot of use-cases, especially since there aren’t any other alternative clients, currently, supporting this ( Postman does not have this feature either ), this will be very useful for developers/engineers working in a serverless stack!

Thanks,

  • mim

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
mim-Armandcommented, May 22, 2019

So the least intrusive solution I can think of is to add a checkbox in the UI that lets the user choose identity_token instead of access_token when it’s available and desired. ( like in the screen-shot below )

I have implemented the UI to show the token if it exists in the response, we need to let the user choose which token to use though to make their calls, or we can add that in a future PR?

I still also need to check and add tests if needed

@gschier does that sound good?

Screen Shot 2019-05-22 at 12 15 36 PM
4reactions
develohpandacommented, Jan 21, 2021

Hey folks, sorry about the lack of communication! 🤗 I’ll re-open this issue because it was closed by stale bot and without good reason. @mim-Armand / @alanwill please feel free to raise a PR and we can work towards getting this into the project.

Happy to help in case you need any guidance with UI and testing (where possible).

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature Request] OAuth 2 missing Identity token. · Issue #1423
To authenticate requests to API-Gateway endpoints that are protected by AWS Cognito Authorizers, the access_token will not work! but the ...
Read more >
Using OAuth 2.0 to Access Google APIs | Authorization
1. Obtain OAuth 2.0 credentials from the Google API Console. · 2. Obtain an access token from the Google Authorization Server. · 3....
Read more >
Access Token Response - OAuth 2.0 Simplified
If the request for an access token is valid, the authorization server needs to generate an access token (and optional refresh token) and...
Read more >
ID Token and Access Token: What Is the Difference? - Auth0
In the OAuth 2 context, the access token allows a client application to access a specific resource to perform specific actions on behalf...
Read more >
OpenID Connect & OAuth 2.0 API - Okta Developer
Obtain an access and/or ID token by presenting an authorization grant or refresh token. /introspect, Return information about a token. /revoke, Revoke an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found