Method: Doorkeeper::Config::Builder#client_credentials
- Defined in:
- lib/doorkeeper/config.rb
#client_credentials(*methods) ⇒ Object
Change the way client credentials are retrieved from the request object. By default it retrieves first from the ‘HTTP_AUTHORIZATION` header, then falls back to the `:client_id` and `:client_secret` params from the `params` object.
73 74 75 |
# File 'lib/doorkeeper/config.rb', line 73 def client_credentials(*methods) @config.instance_variable_set(:@client_credentials_methods, methods) end |