App Username and Password - Dash Authentication

Add authentication to your Dash Plotly app to make it more private and share it only with people that need to see it. We will execute Dash Basic Authentication for an app on your local computer as well as an app that has been deployed to the web.
View my book - The Book of Dash:
www.amazon.com/Python-Dash-An...
github.com/DashBookProject/Pl...
Code:
github.com/Coding-with-Adam/D...
Data:
drive.google.com/file/d/1Dc1O...
Dash Basic Authentication:
dash.plotly.com/authentication
Supporting Documentation:
👉 drive.google.com/file/d/1buu6...
Video layout:
00:00 - App demo and what you will learn
03:20 - Part 1: Authentication for local app
07:05 - Part 2: Authentication for app on the web
************************************************************************
👉 If you appreciate these tutorials and would like to support their existence and get some perks: Patreon: / charmingdata
GitHub: github.com/sponsors/Coding-wi...
KZread: / @charmingdata

Пікірлер: 49

  • @CharmingData
    @CharmingData3 жыл бұрын

    Hey Everyone, Download the supporting doc to guide you: drive.google.com/file/d/1buu61Fj_14R-QbKF-oMOCBeQMrcrG_rp/view Que disfruten! Avísenme si algo no es claro. Enjoy! Let me know if you have any questions. Find me on LinkedIn: www.linkedin.com/in/adam-schroeder-17b5a819

  • @chodavid4495
    @chodavid44953 жыл бұрын

    One of super Python KZreadrs. Helpful for anyone who doesn't have a fundamental coding background. Better than Uni lectures

  • @CharmingData

    @CharmingData

    3 жыл бұрын

    Thank you @Cho David

  • @IanWatts3519
    @IanWatts35193 жыл бұрын

    Hey everyone - just to say please consider supporting Adam on Patreon - it is well worth it for the quality and depth of knowledge he has on Dash - I've just scored myself a paid internship purely based on my knowledge of Dash and Plotly, which is all down to Adam. I hadn't heard of it until a few months ago and now I'm working with it daily. I don't as a rule support creators on Patreon but when I find something of such quality it is a no brainer (And no Adam hasn't asked me to write this - I just feel the guy needs as much support as he can get so that we have a go-to source for Dash and Plotly)

  • @CharmingData

    @CharmingData

    3 жыл бұрын

    Thank you for your kind words, Ian 😊

  • @EpsteinLeis
    @EpsteinLeis3 ай бұрын

    This was so simple and easy to implement! Thank you. :)

  • @203VIDEOS
    @203VIDEOS2 жыл бұрын

    Your videos are awesome and helpful. Thank you.

  • @leonardomolina8958
    @leonardomolina89583 жыл бұрын

    Thanks for the tutorial! Very useful and simple, I expected this video. Great detail about username and password in spanish.

  • @CharmingData

    @CharmingData

    3 жыл бұрын

    Thank you, Leonardo.

  • @WhiteLemon_Official
    @WhiteLemon_Official10 ай бұрын

    Apprciate your video, very detailed, it really helping me in developing web app using plotly dash. God Bless you

  • @saiprasadkagne464
    @saiprasadkagne4643 жыл бұрын

    Wonderful Sir

  • @vaclavsisl175
    @vaclavsisl1753 жыл бұрын

    Thanks for this useful tutorial! It would be great if you added a brief comment about the security aspects (and flaws) of this approach and gave some starting point tips for learning about other authentication methods that would be suitable for enterprise-level applications. Otherwise, well covered :)

  • @CharmingData

    @CharmingData

    3 жыл бұрын

    Thank you for the suggestion and feedback, @Vaclav

  • @hcoco1
    @hcoco1Ай бұрын

    Thanks for this useful tutorial!

  • @koladeadewoye5226
    @koladeadewoye52263 жыл бұрын

    Hi Adam, Wonderful stuff as always. My Hero. Please can your next video be on how to use flask authentication login and place it on top of the dashapp so we can have better authentication. I know you said we should figure it on our own but this would be awesome content :))

  • @CharmingData

    @CharmingData

    3 жыл бұрын

    Hi Kolade. I'm glad you're liking the videos. Thanks for the suggestion.

  • @edgargut
    @edgargut3 жыл бұрын

    Thank you Adam!

  • @CharmingData

    @CharmingData

    3 жыл бұрын

    You're welcome Edgar.

  • @paritoshwale8723
    @paritoshwale87232 жыл бұрын

    Hi Adam, Thanks for such great videos :), do you know how to have authentication on specific pages on a multipage app?

  • @blociot
    @blociot3 жыл бұрын

    Great topic Adam! Thank you. Would be great of you could make a video to deply the app for real life use. I've heard about Heroku, etc. but would like to get your insights on the required steps to bring the app up for public users on the web

  • @CharmingData

    @CharmingData

    3 жыл бұрын

    Hi Mos, i already have a video tutorial on deploying your app to heroku. Did you find it?

  • @blociot

    @blociot

    3 жыл бұрын

    @@CharmingData oh I didn't know that. I will search then. By the way, do you think Heroku is the best choice or maybe I should assess AWS or other platform, if I want to deploy an app with commercial use?

  • @CharmingData

    @CharmingData

    3 жыл бұрын

    @@blociot both are good. AWS has more hidden prices so just be careful

  • @gokhangunal1403
    @gokhangunal1403 Жыл бұрын

    Hi Adam, thanks for your great lessons ! I have multi-page app, I try to set username and password in a local project. I follow all your steps but it does not work. Can you give us any advice?

  • @abelalexander2277
    @abelalexander22772 жыл бұрын

    Hi Adam, Thanks for the brilliant tutorials! I was wondering whether I would be able to fetch the username entered by the user and based on the username, display/restrict certain pages in the callback function. I would appreciate it if you could share any ideas. Thanks in advance!

  • @CharmingData

    @CharmingData

    2 жыл бұрын

    Hi Abel, I don't think so, not only with Dash user authentication. You would need to use another type of user authentication

  • @abelgebreegziabher6096
    @abelgebreegziabher60963 жыл бұрын

    Hi Adam, as always a nice one. Often times, nne builds a dashboard/app and could not deploy on platforms like heroku due to security/company pravicay issues. I thought of maybe changing your dashapp to an excutable (.exe) is one way to share you app, but I have not seen a good example/tutorial on this topic. Could you make a tutorial on this topic ?

  • @CharmingData

    @CharmingData

    3 жыл бұрын

    Hi Abel, thank you for the suggestion. I'm not familiar with dash app as an executable, but I'll definitely take a look and see if I can make a tutorial out of that. Thank you

  • @Samw839
    @Samw8392 жыл бұрын

    Thanks, awesome video! Does basic authentication allow multiple users to access the app concurrently?

  • @CharmingData

    @CharmingData

    2 жыл бұрын

    I think so.

  • @debasispanda1764
    @debasispanda17643 жыл бұрын

    Thanks for the Dash tutorials. These are very helpful. Can you please help us understand how scalable Dash UI are ?

  • @CharmingData

    @CharmingData

    3 жыл бұрын

    Hi @debasis, can you please expand on your question. What do you mean?

  • @debasispanda1764

    @debasispanda1764

    3 жыл бұрын

    Hi@@CharmingData .. If I am creating a full fledged multi paged with authentication dash project and have to access by hundreds of Business Users will the dash app able to handle concurrency ?? or you see any performance hindrances ..

  • @CharmingData

    @CharmingData

    3 жыл бұрын

    @@debasispanda1764 yes, @Debasis it should. However, the challenge might be the host/server on which you choose to deploy your app. If you choose heroku, as in my tutorials, you would need to purchase a few dynos at the cost of $10-$20 a month. I'm not sure if it's cheaper with pythonAnywhere or AWS but probably not by much

  • @debasispanda1764

    @debasispanda1764

    3 жыл бұрын

    Thank you ..@@CharmingData

  • @kratikakothari6848
    @kratikakothari68483 жыл бұрын

    Very well explained sir. Sir, can you please tell how to make an Interactive UI by using dash.

  • @CharmingData

    @CharmingData

    3 жыл бұрын

    Hi @Kratika, can you give me an example of an interactive UI that you'd like me to make with Dash. It should be something not too complicated, if possible, so it speaks to more people.

  • @mayankjain3587
    @mayankjain35872 жыл бұрын

    Thank you for the tutorial! I have a question, is it possible to know how many users are logged-in to the app at a given point in time? I want to restrict the app access to single user at a given time. Is it possible to achieve it in Dash? thanks!

  • @CharmingData

    @CharmingData

    2 жыл бұрын

    I'm not sure. Sorry, Mayank

  • @sriramkrishnan8606
    @sriramkrishnan8606 Жыл бұрын

    Hey Adam. I tried to pass the password as a variable , so not everyone can see the hard coded password. But I keep getting error with port number or some run_simple error which makes no sense as the app runs perfectly fine with a hard coded password . Just when I pass the password as a variable i am facing erorrs

  • @kinectintell
    @kinectintell Жыл бұрын

    Hi, is there been any update on the login page in Dash? an advanced and customizable login page will surely be appreciable.

  • @CharmingData

    @CharmingData

    Жыл бұрын

    Hi. No i don't think so

  • @mohammadsamirahmed8205
    @mohammadsamirahmed82052 жыл бұрын

    where to copy above lines of code for multipage app? i tried in index page, app page... nothing is working in heroku :(

  • @CharmingData

    @CharmingData

    2 жыл бұрын

    Hi Mohammad, I'm not sure. Sorry.

  • @kakargaris1990
    @kakargaris1990 Жыл бұрын

    would it be possible to create a similar video for Render instead of Heroku?

  • @CharmingData

    @CharmingData

    Жыл бұрын

    Yes, i did. It's a recent video from a few months ago

  • @kakargaris1990

    @kakargaris1990

    Жыл бұрын

    @@CharmingData would it be similar to set username/authentication for an online app on Render and Heroku?

  • @shivi1410
    @shivi1410Ай бұрын

    But How to logout? @CharmingData