Class: Warden::OAuth2::Strategies::IssuingAccessToken

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

Instance Attribute Summary

Attributes inherited from Base

#error_description

Instance Method Summary collapse

Methods inherited from Base

#error_status, #store?

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

Returns:

  • (Boolean)


7
8
9
# File 'lib/warden/oauth2/strategies/issuing_access_token.rb', line 7

def valid?
  !params.include?('grant_type')
end