4

Im trying to wrap my head around this problem for 2 days now and i cant find any right solution on the web and forums for this problem.

I cant secure a dash-app within flask-app with @login_required decorator. I can call the dash-app with in the blueprint route with @login_required to secure it and redirect it to the dash-app.

But if i call the dash-app directly like_ localhost:5000/dashapp1 then it goes directly to the app without login.

Is there any solution out there that secure the Dash-App within the Flask-App with the same Flask-Login initiation?

thanks

Maki
  • 201
  • 5
  • 11
  • You can check my solution at: https://stackoverflow.com/a/54011735/2180721 – Oleg Jan 03 '19 at 13:15
  • Also related: https://stackoverflow.com/q/60853537/320399 and https://stackoverflow.com/q/57629586/320399 – blong May 24 '21 at 13:35

1 Answers1

2

I think this is what you are looking for this guy also uses blueprints in someway. I was looking for how to structure flask application with blueprints and dash and found this. It is little bit complex but worth to try.

alkanschtein
  • 305
  • 1
  • 13