Not Found After Adding SAML Plugin
Added by Lor Vang almost 4 years ago
Hi,
I am new to Redmine and SAML and am in charge of migrating Redmine to a new server. In the mean time there is no plan to upgrade Redmine to the new version but will be after the migration. I have moved the DB and plugins and now I am trying to implement SAML. Before raking in the plugin I am able to log into Redmine via LDAP but after raking in the plugin I get an error stating Not Found. Any help would be greatly appreciated. Thank you in advance.
Windows Server 2019
Redmine version 3.3.2-0
omniauth_saml version (not sure because I copied it from the old server, looking at the date it was downloaded back in 2017 and got from Christian Rodriguez)
Gem omniauth-1.6.1
Gem omniauth-saml-1.0.0
Gem omniauth-saml-cespi-1.3.1
Do I need to create the saml.rb file first before going into Redmine and completing this step "Finaly you need to configure some minor options for the plugin to work, in "Administration" > "Plugins" > "Configure" on the OmniAuth SAML plugin line?"
Below is what I'm seeing in my log file I've replaced my server name with SERVERNAME:
Started GET "/redmine/login?back_url=http%3A%2F%2FSERVERNAME%2Fredmine%2F" for 127.0.0.1 at 2021-05-13 16:20:10 -0700
Processing by AccountController#login as HTML
Parameters: {"back_url"=>"http://SERVERNAME/redmine/"}
Current user: anonymous
Redirected to http://SERVERNAME/redmine/auth/saml?origin=http%3A%2F%2FSERVERNAME%2Fredmine%2F
Completed 302 Found in 7ms (ActiveRecord: 1.0ms)
Started GET "/redmine/auth/saml?origin=http%3A%2F%2FSERVERNAME%2Fredmine%2F" for 127.0.0.1 at 2021-05-13 16:20:10 -0700
Processing by AccountController#login_with_saml_redirect as HTML
Parameters: {"origin"=>"http://SERVERNAME/", "provider"=>"saml"}
Current user: anonymous
Rendered text template (0.0ms)
Completed 404 Not Found in 10ms (Views: 5.0ms | ActiveRecord: 1.0ms)
Started GET "/redmine/" for 127.0.0.1 at 2021-05-13 16:31:54 -0700
Processing by WelcomeController#index as HTML
Current user: anonymous
Redirected to http://SERVERNAME/login?back_url=http%3A%2F%2FSERVERNAME%2Fredmine%2F
Filter chain halted as :check_if_login_required rendered or redirected
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
Started GET "/redmine/login?back_url=http%3A%2F%2FSERVERNAME%2Fredmine%2F" for 127.0.0.1 at 2021-05-13 16:31:54 -0700
Processing by AccountController#login as HTML
Parameters: {"back_url"=>"http://SERVERNAME/redmine/"}
Current user: anonymous
Redirected to http://SERVERNAME/redmine/auth/saml?origin=http%3A%2F%2FSERVERNAME%2Fredmine%2F
Completed 302 Found in 8ms (ActiveRecord: 1.0ms)
Started GET "/redmine/auth/saml?origin=http%3A%2F%2FSERVERNAME%2Fredmine%2F" for 127.0.0.1 at 2021-05-13 16:31:54 -0700
Processing by AccountController#login_with_saml_redirect as HTML
Parameters: {"origin"=>"http://SERVERNAME/redmine/", "provider"=>"saml"}
Current user: anonymous
Rendered text template (0.0ms)
Completed 404 Not Found in 3ms (Views: 1.0ms | ActiveRecord: 2.0ms)
Replies (2)
RE: Not Found After Adding SAML Plugin
-
Added by Lor Vang almost 4 years ago
Disregard I found the issue.
RE: Not Found After Adding SAML Plugin
-
Added by kojiro kitaura 10 days ago
Hello Lor Vang-san, my name is Kojiro from Japan. I'm also actually trying to build Redmine and now facing same issue as you encountered before with 404 not found after SAML login function.
If you remember, could you share what was the root cause and how you have resolved?
Thanks in advance.
Best Regards,
Kojiro