Class: Frodo::Middleware::Authentication::Password

Inherits:
Frodo::Middleware::Authentication show all
Defined in:
lib/frodo/middleware/authentication/password.rb

Overview

Authentication middleware used if client_id, client_secret, and client_credentials: true are set

Instance Method Summary collapse

Methods inherited from Frodo::Middleware::Authentication

#authenticate!, #call, #connection, #encode_www_form, #error_message

Methods inherited from Frodo::Middleware

#client, #connection, #initialize

Constructor Details

This class inherits a constructor from Frodo::Middleware

Instance Method Details

#paramsObject



4
5
6
7
8
9
10
11
# File 'lib/frodo/middleware/authentication/password.rb', line 4

def params
  { grant_type: 'password',
    client_id: @options[:client_id],
    username: @options[:username],
    password: @options[:password],
    resource: @options[:instance_url],
  }
end