Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid CAS Ticket #7

Open
edav-mx opened this issue Feb 6, 2013 · 1 comment
Open

Invalid CAS Ticket #7

edav-mx opened this issue Feb 6, 2013 · 1 comment

Comments

@edav-mx
Copy link

edav-mx commented Feb 6, 2013

Hi, I was trying out this plugin but can't seem to get it working with an already working Cas server (other apps seem to work ok). Is this a configuration error?. This is the output in the logs:

Filter chain halted as :check_if_login_required rendered or redirected
Completed 302 Found in 240ms (ActiveRecord: 82.8ms)
Started GET "/login?back_url=http%3A%2F%2F172.30.168.29%3A3000%2F" for 172.30.17 2.75 at 2013-02-06 11:46:37 -0600
Processing by AccountController#login as HTML
Parameters: {"back_url"=>"http://172.30.168.29:3000/"}
Current user: anonymous
Rendered plugins/redmine_omniauth_cas/app/views/redmine_omniauth_cas/_view_acc ount_login_top.html.erb (133.6ms)
Rendered account/login.html.erb within layouts/base (218.1ms)
Completed 200 OK in 368ms (Views: 359.9ms | ActiveRecord: 4.0ms)
(cas) Setup endpoint detected, running now.
(cas) Request phase initiated.
Started GET "/auth/cas?origin=http%3A%2F%2F172.30.168.29%3A3000%2F" for 172.30.1 72.75 at 2013-02-06 11:48:04 -0600
(cas) Setup endpoint detected, running now.
(cas) Callback phase initiated.
(cas) Authentication failure! invalid_ticket: OmniAuth::Strategies::CAS::Invalid CASTicket, Invalid CAS Ticket
Started GET "/auth/cas/callback?origin=http%3A%2F%2F172.30.168.29%3A3000%2F&tick et=ST-2295-nvQCt6UJ2uibaNk7Y7yz-cas" for 172.30.172.75 at 2013-02-06 11:50:48 -0 600
Started GET "/auth/failure?message=invalid_ticket&origin=http%3A%2F%2F172.30.168 .29%3A3000%2F&strategy=cas" for 172.30.172.75 at 2013-02-06 11:51:19 -0600
Processing by AccountController#login_with_cas_failure as HTML
Parameters: {"message"=>"invalid_ticket", "origin"=>"http://172.30.168.29:3000 /", "strategy"=>"cas"}
Current user: anonymous
Redirected to http://172.30.168.29:3000/login
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
Started GET "/login" for 172.30.172.75 at 2013-02-06 11:51:49 -0600
Processing by AccountController#login as HTML
Current user: anonymous
Rendered plugins/redmine_omniauth_cas/app/views/redmine_omniauth_cas/_view_acc ount_login_top.html.erb (1.1ms)
Rendered account/login.html.erb within layouts/base (2.3ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.8ms)

@mmackiew
Copy link

Same problem here ;(

Started GET "/login?back_url=https%3A%2F%2Fdi.wsb.poznan.pl%2F" for 91.233.235.145 at Thu Feb 28 15:34:24 -0500 2013
Processing by AccountController#login as HTML
Parameters: {"back_url"=>"https://di.wsb.poznan.pl/"}
Current user: anonymous
Redirected to https://di.wsb.poznan.pl/auth/cas?origin=https%3A%2F%2Fdi.wsb.poznan.pl%2F
Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
Started GET "/auth/cas?origin=https%3A%2F%2Fdi.wsb.poznan.pl%2F" for 91.233.235.145 at Thu Feb 28 15:34:24 -0500 2013
Started GET "/auth/cas/callback?origin=https%3A%2F%2Fdi.wsb.poznan.pl%2F&ticket=ST-1888035-yAWTP3YXItOYpv5uvetb-cas" for 91.233.235.145 at Thu Feb 28 15:34:34 -0500 2013
Started GET "/auth/failure?message=invalid_ticket&origin=https%3A%2F%2Fdi.wsb.poznan.pl%2F&strategy=cas" for 91.233.235.145 at Thu Feb 28 15:34:34 -0500 2013
Processing by AccountController#login_with_cas_failure as HTML
Parameters: {"message"=>"invalid_ticket", "origin"=>"https://di.wsb.poznan.pl/", "strategy"=>"cas"}
Current user: anonymous
Rendered common/error.html.erb within layouts/base (0.1ms)
Completed 500 Internal Server Error in 6ms (Views: 3.4ms | ActiveRecord: 0.7ms)

Serwer url: https://portal.wsb.pl/cas
Validate link https://portal.wsb.pl/cas/validate
CAS version 2

Environment:
Redmine version 2.2.3.stable
Ruby version 1.8.7 (x86_64-linux)
Rails version 3.2.12
Environment production
Database adapter PostgreSQL
Redmine plugins:
redmine_omniauth_cas 0.1.1

Cas authentication is successfull and other services work well... Redmine throws invaild ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants