Dash Authentication with AWS Cognito

Hi all,

I would like to hack authentication to use the AWS Cognito service instead of Dash-Auth.
Do you think this is possible? What’s a good starting point?
I read that other users managed to do it using the Flask authentication tools, should I subclass some class in their package?
I also read a user can circumvent the authentication by just typing the to a “login_required” site directly.
Any advice will be appreciated. I will post when I manage to have something useful.

1 Like

I’d like to use Cognito too.

It’s very feasible to use Cognito with Dash.

I didn’t change anything on my code and was able to get an authentication page for it on Cognito.

There were only two issues.

  1. On your app you must exclude/comment out Dash authentication. If the Dash login modal pops up it will conflict with Cognito.
  2. This one is a lot of more difficult and I haven’t solved it yet. The public URL for my app is an Application Load Balancer DNS. I can’t find I way to redirect this to a custom domain so I can use an SSL certificate and bypass the horrible “Potential Risk ahead” message cause by a “bad” SSL certificate.

If anybody needs help setting up Cognito, I’m more than glad to help and if anybody has the answer for #2 please, please help me. lol. I’ve been trying it for the last week without success.

three reasons why you should buy plotly pro: support open source, get great support, host your plots and dashboards online