Module: OmniauthableController

Includes:
OmniauthableHelper
Defined in:
lib/recsolu_login_client/omniauthable_controller.rb

Instance Method Summary collapse

Methods included from OmniauthableHelper

#current_user, #user_signed_in?

Instance Method Details

#login_requiredObject Also known as: authenticate_user!



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/recsolu_login_client/omniauthable_controller.rb', line 6

def 
  if !current_user
    respond_to do |format|
      format.html  {
        redirect_to '/auth/recsoluid'
      }
      format.json {
        render :json => { 'error' => 'Access Denied' }.to_json
      }
    end
  end
end