parse-dashboard icon indicating copy to clipboard operation
parse-dashboard copied to clipboard

Proposal: Form Based Authentication

Open JeremyPlease opened this issue 10 years ago • 1 comments

The current basic auth implementation works well, but there are a few minor downsides:

  • Not all browsers can save basic auth credentials.
  • Login persistence can't be controlled (ie. stay logged in for 2 weeks).
  • Basic auth username/password is passed as base64 encoded string (technically ok over https).
  • Cancelling from browser basic auth just shows "You don't have any apps."

Proposal:

  1. Create a page similar to https://www.parse.com/login (stripped down to only have username/password inputs--screenshot).
  2. Redirect to to login page if not authenticated.
  3. Verify session on /parse-dashboard-config.json route.
  4. Continue to use users configuration.
  5. Use passport and passport-local for authentication.
  6. Update config loading to set passport configuration options.

Any suggestions, concerns, or objections?

JeremyPlease avatar Aug 15 '16 14:08 JeremyPlease

A logout button would be useful too

steven-supersolid avatar Oct 21 '16 16:10 steven-supersolid