Setting up Single Sign In using Cognito to Quicksight

Hi I’m looking for a up to date way for users to sign into Quicksight from Cognito, without being asked again by Quicksight to sign in.

There are some code examples some out of date and some that require using react. I’m using just plain JavaScript/Jquery no web framework and can’t really find much. How should I go about creating this? The only up to date tutorials I can find are unfortunately paywalled on medium.

Older link using amplify - this is good but for react - also might be out of date with some of the new QS API operations

This stackoverflow post is pretty much exactly what I’m looking for - I didn’t write it

I’d like to avoid using EC2 and just pass things like via oauth tokens and account id’s via serverless function to the users browser, the below link is a very good tutorial, but I need to get the user account ID from Quicksight as well so I can list their dashboards and what not and embed dashboards.
Reduce risk by implementing HttpOnly cookie authentication in Amazon API Gateway | AWS Security Blog.

So essentially I’m just looking for a serverless way create a single sign on for users to Quicksight. This is not part of the question but my plan is to handle Quicksight account assignment separately. Users must pay to get an account, which I’m handling via Stripe. I have a script that just checks which users have paid and for what tier and assign the users respective QS account that way via their email, which I then need to attach to cognito some how.

Hello @Sean_B !

Have you tried the solution from this post?:

@duncan Yes I have checked out that post my use case is a little different which is why I haven’t tried it yet. For point 2. a user could be signed in and have a Cognito account but not have a Quicksight account / still need to pay to sign up for one.

Let me give it a try today following @ArunSanthosh answer.

@duncan @ArunSanthosh Can I use the Cognito hosted page for this? I’m attempting this from scratch with a new Cognito pool. Would this work as an intermediary page?