dlindahl / omniauth-cas

A CAS OmniAuth Strategy
MIT License
88 stars 79 forks source link

Cannot get the CAS ticket to validate #9

Closed sdellis closed 10 years ago

sdellis commented 11 years ago

I'm using omniauth/omniauth-cas (1.1.3 / 1.0.1) with devise (2.1.2) and cannot get the CAS ticket to validate on the callback. Perhaps I am doing something wrong in assuming, based on the other OmniAuth strategy conventions, that the method should be called 'cas' in the OmniauthCallbacksController?

Here's what I get in my dev log...

Started GET "/users/auth/cas/callback?url=http%3A%2F%2Flocalhost%2Fusers%2Fsign_in&ticket=ST-44921-MwzSVdlobJWu9d1eCsfm-fed06" for 127.0.0.1 at 2013-03-05 14:45:11 -0500
Processing by Users::OmniauthCallbacksController#failure as HTML
  Parameters: {"url"=>"http://localhost/users/sign_in", "ticket"=>"ST-44921-MwzSVdlobJWu9d1eCsfm-fed06"}
Redirected to http://localhost/users/sign_in
Completed 302 Found in 10ms (ActiveRecord: 0.0ms)

Here's my "omniauth_callbacks_controller.rb" code. At the moment, I'm just trying to dump the callback data, but the 'cas' method doesn't seem to get called as there's no logger output for request.env["omniauth.auth"].

class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
  def cas
    logger.debug "CAS attributes hash: #{request.env["omniauth.auth"].inspect}"
  end
end
dlindahl commented 11 years ago

Are you still experiencing a problem?

If so, is there any more data you can provide to help me debug the problem?

A sample app would be immensely helpful

dlindahl commented 10 years ago

Closing due to inactivity. Feel free to re-open with more information.