Comments (11)
sorry about that...yes only work around for now is to go to the plugin folder and manually install the plugin:
git clone https://github.com/syl20lego/insomnia-plugin-aws-cognito-token.git
cd insomnia-plugin-aws-cognito-token
npm install
from insomnia-plugin-aws-cognito-token.
sorry about that...yes only work around for now is to go to the plugin folder and manually install the plugin:
git clone https://github.com/syl20lego/insomnia-plugin-aws-cognito-token.git
cd insomnia-plugin-aws-cognito-token
npm installHi @syl20lego thank you for this workaround. Once cloned and installed, where do I put it? Thanks.
I found it.
Find the plugin folder with Insomnia > Preferences > Plugins > Reveal Plugin Folder.
Then copy the entire insomnia-plugin-aws-cognito-token
folder into it.
from insomnia-plugin-aws-cognito-token.
I rewrote the aws authentication and remove the cognito dependency.
Please use 0.14.1
You now use Region instead of Pool ID, you should edit the configuration to only keep the region part of the pool id.
Note: it is backward compatible, so it will extract the region from the Pool ID if left
from insomnia-plugin-aws-cognito-token.
this is used by both amazon-cognito-identity-js and aws-sdk, but they are still using 4.9.1 in their latest, I'm waiting for them to update their dependencies.
from insomnia-plugin-aws-cognito-token.
@syl20lego Based on this tutorial : https://medium.com/@mauro.canuto88/graphql-with-insomnia-and-aws-cognito-authentication-324c5f6847d7
I am getting error in Live Preview: Unable to verify secret hash for client 56n1ij8fich#######kjb8nc (When TOKEN_TYPE is used as "access").
Is this related to the above version compatibility bug by any chance. I used the manual installation process
from insomnia-plugin-aws-cognito-token.
@sagun786 I don't think your issue is related. Sadly I'm still waiting for AWS to update their library in order to fix the buffer version issue
from insomnia-plugin-aws-cognito-token.
sorry about that...yes only work around for now is to go to the plugin folder and manually install the plugin:
git clone https://github.com/syl20lego/insomnia-plugin-aws-cognito-token.git
cd insomnia-plugin-aws-cognito-token
npm install
Hi @syl20lego thank you for this workaround. Once cloned and installed, where do I put it? Thanks.
from insomnia-plugin-aws-cognito-token.
Hi,
Getting the following error on trying to install the plugin:
Error: Cannot find module 'amazon-cognito-identity-js'
at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
from insomnia-plugin-aws-cognito-token.
Just sent a PR for the issue noted in the first post.
@syl20lego is correct that it is an issue on one of the libraries. Yarn (as well as pnpm) can still force a specific version to be installed, which solves the issue.
from insomnia-plugin-aws-cognito-token.
looks like the fix isn't working, thank Greg for helping. For people looking for a solution, looks like work around is still to go to the plugin folder and manually install the plugin:
git clone https://github.com/syl20lego/insomnia-plugin-aws-cognito-token.git
cd insomnia-plugin-aws-cognito-token
npm install or yarn install
from insomnia-plugin-aws-cognito-token.
Interesting, either they use an older version of yarn, or they hand-pick the package.json fields to feed it and they do not support the resolutions
one.
An alternative is to publish a fork of the aws packages that use the correct dependency version.
Or, another one, finding out if Insomnia can support the resolutions
field. I'll see if I can have a look at that.
from insomnia-plugin-aws-cognito-token.
Related Issues (10)
- Feature Request: Support for USER_SRP_AUTH HOT 4
- Refresh token should clear state, so it gets a new token from the endpoint HOT 1
- latest insomnia version broke this plugin - editor no longer shows in UI HOT 1
- Error in getting session: http 400 HOT 3
- Unable to save because of parse error HOT 3
- Unable to get response HOT 4
- Error installing into Insomnia 6.6.2 HOT 3
- Unable to verify secret hash for client: Using the plugin to hit https://localhost:8300 (ssl enabled mkcert) but I get error HOT 3
- Unable to use app client secret HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from insomnia-plugin-aws-cognito-token.