# Basic authentication with multiple usernames filtering database

**URL:** https://community.plotly.com/t/basic-authentication-with-multiple-usernames-filtering-database/72646
**Category:** Dash Python
**Created:** [February 13, 2023, 2:31pm UTC](https://community.plotly.com/t/basic-authentication-with-multiple-usernames-filtering-database/72646 "2023-02-13T14:31:31Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![jinnyzor](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jinnyzor/32/21194_2.png) [@jinnyzor](https://community.plotly.com/u/jinnyzor)
#### Post date: [February 13, 2023, 4:05pm UTC](https://community.plotly.com/t/basic-authentication-with-multiple-usernames-filtering-database/72646/4 "2023-02-13T16:05:44Z")

</div>

Sure thing, please check this thread:

> [@Dash App Pages with Flask Login Flow using Flask](https://community.plotly.com/t/dash-app-pages-with-flask-login-flow-using-flask/69507):
>
> Hello All! I’ve been working to be able to use the Flask method of logging in. This is an alteration of the flask\_login method provided here: [dash-multi-page-app-demos/multi\_page\_flask\_login at main · AnnMarieW/dash-multi-page-app-demos · GitHub](https://github.com/AnnMarieW/dash-multi-page-app-demos/tree/main/multi_page_flask_login) This will allow you to: restrict individual pages and redirect to login while saving the path (note: you will use the registered page name to restrict) once logged in, will redirect to the saved path or to the home page when logging out, it will redi…

There is some import info about how you would go about locking down the application to keep it from responding to bad POST requests in the later replies.

---

_[View the full topic](https://community.plotly.com/t/basic-authentication-with-multiple-usernames-filtering-database/72646)._
