Patch #4596

REST api fto get account info ?

Added by Jérémy Lal about 2 years ago. Updated about 1 year ago.

Status:Closed Start date:2010-01-16
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:REST API
Target version:-

Description

Hi,
it could be very useful for other software that would want to authenticate against redmine,
to have /my/account.(json|xml) return account information (User.current).
Here's a small patch to provide this.

rest_account.diff - patch against 0.9-stable (1.5 kB) Jérémy Lal, 2010-01-16 18:11


Related issues

related to Feature #296: REST API Closed
duplicates Feature #6260: REST API for Users Closed 2010-09-01

History

Updated by Eric Hollering almost 2 years ago

+1 Definitely would like to see this.

Updated by Jean-Philippe Lang almost 2 years ago

Sending the user's password hash in the response is not a good idea.

Updated by Adam Kaplan over 1 year ago

Jean-Philippe Lang wrote:

Sending the user's password hash in the response is not a good idea.

I'm trying to get Redmine adopted by the NY Times and this API would be a critical step. I think a user information API would be very powerful feature:

  • Query for account existence
  • Ability to create an account stub
  • Retrieve core account info -- first, last, email

I'll create a more complex and secure patch based on the above.

Updated by Jean-Philippe Lang about 1 year ago

  • Status changed from New to Closed

The REST API for Users was added in trunk and will be available in 1.1.

Also available in: Atom PDF