Class: Warden::OAuth2::Strategies::IssuingAccessToken
- Defined in:
- lib/warden/oauth2/strategies/issuing_access_token.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#authenticate! ⇒ Object
11 12 13 14 |
# File 'lib/warden/oauth2/strategies/issuing_access_token.rb', line 11 def authenticate! self.error_description = 'grant_type is not specified or invalid' fail! 'invalid_grant' end |
#valid? ⇒ Boolean
7 8 9 |
# File 'lib/warden/oauth2/strategies/issuing_access_token.rb', line 7 def valid? !params.include?('grant_type') end |