Class: Warden::OAuth2::Strategies::Public

Inherits:
Base
  • Object
show all
Defined in:
lib/warden/oauth2/strategies/public.rb

Instance Method Summary collapse

Methods inherited from Base

#store?

Instance Method Details

#authenticate!Object



7
8
9
10
11
12
13
# File 'lib/warden/oauth2/strategies/public.rb', line 7

def authenticate!
  if scope && scope.to_sym != :public
    fail! "insufficient_scope" and return
  end

  success! nil
end

#error_statusObject



15
16
17
# File 'lib/warden/oauth2/strategies/public.rb', line 15

def error_status
  401
end