plotly / plotly/dash-auth

Questions about Basic Auth Implementation

Open
#74 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
135
Forks
67
PR merge metrics
No merged PRs in 30d

Description

I am using dash-auth (Basic Auth) in my dash app. I want to improve the login experience for the user and want to provide change password etc functionality.

For this, I wanted to convert the login dialog into a simple HTML login form with a link to change password. I tried to reverse engineer and explore the code in dash-auth module but didn't get much luck. Here are my primary questions

  1. Where is the JS code which receives the username and password from login dialog and submit to server ?
  2. Where is the code which sets the Authorization header before every request to the server?
  3. At client side where are we storing the value set in Authorization header ?
  4. Where is the code which renders the dialog for username and password.

Please let me know if anything else I would need in order to implement above use case or if there is a better existing implementation which I can reuse.

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names dash-auth's login dialog, JavaScript submission, Authorization header handling, and client-side storage as areas to investigate; start by tracing those paths in the dash-auth module. A contribution would need an agreed scope for an HTML login form, password-change link, and any server-side support before completion can be defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.