Module: Rack::Cas::ClientHelpers::Rails
- Defined in:
- lib/rack/cas_client.rb
Instance Method Summary collapse
Instance Method Details
#current_user ⇒ Object
431 432 433 434 435 436 437 |
# File 'lib/rack/cas_client.rb', line 431 def current_user return @current_user if @current_user user_data = {:username => request.env['rack.cas.client.user']} extra_attrs = request.env['rack.cas.client.user_extra'] || {} user_data.merge!(extra_attrs) @current_user = OpenStruct.new(user_data) end |