Class: OmniAuth::Strategies::CrewCheck

Inherits:
GitHub
  • Object
show all
Defined in:
lib/omniauth/strategies/crew_check.rb

Instance Method Summary collapse

Instance Method Details

#callback_phaseObject



18
19
20
21
22
23
24
# File 'lib/omniauth/strategies/crew_check.rb', line 18

def callback_phase
  if options.role_required && roles.empty?
    fail!(:invalid_credentials)
  else
    super
  end
end