danmunn / redmine_mylyn_connector

API Connector for mylyn [redmine-myln-connector] as developed originally by Sven Krzyzak (sourceforge.net/projects/redmin-mylyncon)
danmunn.github.com/redmine_mylyn_connector
59 stars 31 forks source link

Login with admin account results in "Invalid Credentials" #25

Closed mevatron closed 8 years ago

mevatron commented 10 years ago

I think I have everything installed correctly, but when I login using the the Redmine Mylyn Connector within Eclipse I get the following production.log output:

Started GET "/redmine/users" for 192.168.11.44 at 2013-11-15 13:47:40 -0600
Processing by UsersController#index as HTML
  Current user: admin (id=1)
  Rendered users/index.html.erb within layouts/admin (19.6ms)
  Rendered admin/_menu.html.erb (5.0ms)
  Rendered inline template (0.7ms)
  Rendered layouts/base.html.erb (26.3ms)
Completed 200 OK in 74ms (Views: 56.2ms | ActiveRecord: 4.8ms)
Started GET "/redmine/users/1/edit" for 192.168.11.44 at 2013-11-15 13:47:50 -0600
Processing by UsersController#edit as HTML
  Parameters: {"id"=>"1"}
  Current user: admin (id=1)
  Rendered users/_mail_notifications.html.erb (11.7ms)
  Rendered users/_preferences.html.erb (356.2ms)
  Rendered users/_form.html.erb (382.2ms)
  Rendered users/_general.html.erb (386.2ms)
  Rendered users/_memberships.html.erb (14.4ms)
  Rendered common/_tabs.html.erb (407.7ms)
  Rendered users/edit.html.erb within layouts/admin (411.7ms)
  Rendered admin/_menu.html.erb (2.9ms)
  Rendered inline template (0.6ms)
  Rendered layouts/base.html.erb (9.5ms)
Completed 200 OK in 510ms (Views: 431.2ms | ActiveRecord: 73.5ms)
Started GET "/redmine/mylyn/version" for 192.168.11.44 at 2013-11-15 13:49:13 -0600
Processing by MylynConnector::InformationController#version as XML
  Current user: anonymous
Filter chain halted as :require_login rendered or redirected
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.6ms)

It appears that it logs in at first, but then switches over to the anonymous user, which then results in an Unauthorized access. Any ideas? Do I need to not work as an admin with this plugin?

mevatron commented 10 years ago

Found the issue. I need to enable the REST web service. Navigate to Administration >> Settings >> Authentication and check Enable REST web service. Everything worked great after this! You might specify this in the Installation section of README.rdoc to help future users. Submitted Pull request #26 to enhance the README.rdoc.