Coder Social home page Coder Social logo

Comments (11)

syl20lego avatar syl20lego commented on May 20, 2024 5

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.

geoff-ellison avatar geoff-ellison commented on May 20, 2024 3

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.

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.

syl20lego avatar syl20lego commented on May 20, 2024 1

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.

syl20lego avatar syl20lego commented on May 20, 2024

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.

sagun786 avatar sagun786 commented on May 20, 2024

@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.

syl20lego avatar syl20lego commented on May 20, 2024

@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.

geoff-ellison avatar geoff-ellison commented on May 20, 2024

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.

IndyBose avatar IndyBose commented on May 20, 2024

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.

gouegd avatar gouegd commented on May 20, 2024

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.

syl20lego avatar syl20lego commented on May 20, 2024

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.

gouegd avatar gouegd commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.