[Bug 867459] [NEW] REST API: Implement a simple way to check user credentials 

Florian Fuchs 867459 at bugs.launchpad.net
Tue Oct 4 14:58:52 CEST 2011

Public bug reported:

Currently there is no way to check a user's credentials via the REST
API. While there were discussions on implementing a middleware "hook" to
implement complex authentication logic, there should also be a simple
way to check if a given combination of a user's credentials (user name
and password) matches the one stored in mailman's internal db.

A good way to do this (as discussed on IRC a while ago) could be to implement a SQL stored procedure-like behavior in the REST API.
Meaning: A client sends a uname/pwd-combination to a specific URL resource and receives a plain True or False (1 or 0?) if the combination matches. This way, no password string is sent out via the API.

Things to discuss or consider:

1.) How is the password stored in MMs internal db? (plaintext or hashed? if hashed, which algorithm is used?)
2.) (How) should the pwd be encrypted when sent to the API (depends on 1.)?
3.) Should this API resource be limited to requests from localhost and/or via SSL?

** Affects: mailman
     Importance: Undecided
         Status: New

** Tags: mailman3

You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.

  REST API: Implement a simple way to check user credentials

To manage notifications about this bug go to:

More information about the Mailman-coders mailing list