y-ji / redmine-desktop-client

Automatically exported from code.google.com/p/redmine-desktop-client
0 stars 0 forks source link

allow authentification via api key #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This has the adavantage that i doN#t have to reset my password all the time 
where password changes are forced.

Original issue reported on code.google.com by fabismai...@gmail.com on 15 Feb 2013 at 9:29

GoogleCodeExporter commented 9 years ago
Authentication Most of the time, the API requires authentication. To enable the 
API-style authentication, you have to check Enable REST API in Administration 
-> Settings -> Authentication. Then, authentication can be done in 2 different 
ways:
using your regular login/password via HTTP Basic authentication.
using your API key which is a handy way to avoid putting a password in a 
script. The API key may be attached to each request in one of the following way:
passed in as a "key" parameter
passed in as a username with a random password via HTTP Basic authentication
passed in as a "X-Redmine-API-Key" HTTP header (added in Redmine 1.1.0)
You can find your API key on your account page ( /my/account ) when logged in, 
on the right-hand pane of the default layout.

Original comment by fabismai...@gmail.com on 15 Feb 2013 at 11:14

GoogleCodeExporter commented 9 years ago
According to what you say, it could already work. Just enter your API key in 
the username field and add a random password.
I'll need to test this.

Original comment by bas.them...@gmail.com on 17 Feb 2013 at 10:04

GoogleCodeExporter commented 9 years ago
I've tested it with filling in the API key in the username field and a random 
password.
This works. We could update the title of the field to User name / API Key

Original comment by bas.them...@gmail.com on 18 Feb 2013 at 10:48

GoogleCodeExporter commented 9 years ago
yes please

Original comment by fabismai...@gmail.com on 18 Feb 2013 at 11:01