Class: Doorkeeper::OAuth::ClientCredentials::Validator

Inherits:
Object
  • Object
show all
Includes:
Helpers, Validations
Defined in:
lib/doorkeeper/oauth/client_credentials/validator.rb

Instance Attribute Summary

Attributes included from Validations

#error

Instance Method Summary collapse

Methods included from Validations

#valid?, #validate

Constructor Details

#initialize(server, request) ⇒ Validator

Returns a new instance of Validator.



14
15
16
17
18
19
20
# File 'lib/doorkeeper/oauth/client_credentials/validator.rb', line 14

def initialize(server, request)
  @server = server
  @request = request
  @client = request.client

  validate
end