Amazon Cognito Plugin

I’ve noticed many of you have been looking for this, so I’ve put it together for you. Enjoy!

ps: thanks to ruri for helping me with all the problems I encountered.

OB2 Version: 0.3.1

Author: me

Description: This plugin allows authentication with AWS Cognito using user-provided credentials. It returns the full authentication response in JSON format or error messages if authentication fails. (With proxy support)

Extra Info:

To find the Pool ID or Client ID for a site, try searching for these keywords in the site’s JavaScript files:

  • clientid
  • userPoolId
  • POOL_ID
  • poolId
  • COGNITO_REGION

If that doesn’t work, log in and check the login request, which will contain the Client ID. Then, search for the Client ID in the JavaScript files; it is usually located next to or near the Pool ID.

Download:

OB2CognitoPlugin.zip (677.2 KB)

Screenshots:

image

image

image

image

image

Usage should be fairly simple but if u have any questions/issues/suggestions/bugs drop them below.

Edit (05/08/2024):
I initially left a static region variable in the code, which limited it to only work for EU-West clients. This has now been fixed to dynamically set the region based on the Pool ID input.

7 Likes

you’re not passing the slices as variables. Instead you’re literally passing input.USER and input.Pass right now

press on the “T” button to until you see VAR

Also, you shouldn’t show credentials

2 Likes

Hi there, thanks for you’re share :slight_smile:

I encounter a problem using the plugin, when i send a request with good infos like you said, i have this error :

Do you know where the error came from ?

in user and pass u needs change to VAR.

Hi there, still the same issue.