Class: Warden::OAuth2::Strategies::Public
- Defined in:
- lib/warden/oauth2/strategies/public.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
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! "invalid_scope" and return end success! nil end |
#error_status ⇒ Object
15 16 17 |
# File 'lib/warden/oauth2/strategies/public.rb', line 15 def error_status 401 end |