Project

General

Profile

how to make /key url parameter permanent

Added by Stefan Lindner about 11 years ago

When I open a wikipage with my personal access key like this

http://<Some url>/wiki/?key=<personal key>

I can see the page AND Redmine display my login-information in it's headline (logged in as...). So far so good. But when I try to follow any wiki link I get redirected to a login page. Is there any way to configure Redmine to keep the access key in mind?
We use Redmine 2.3.stable.11981 with roy 1.8.7 and rails 3.2.13

This did'nt work at all in 1.3 so it was the reason to migrste to current Redmine version. Now I'm able to view the spefied wiki URL but nothing more.


Replies (1)

RE: how to make /key url parameter permanent - Added by Jan Niggemann (redmine.org team member) about 11 years ago

You are using the REST API, don't you? You need to pass your key with every request...
From the documentation of the REST API:

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)

So either always pass you key along, or use the other methods.

    (1-1/1)