Module: LondonCab::Auth::Api::Endpoints::Auth

Included in:
LondonCab::Auth::Api::Endpoints
Defined in:
lib/london_cab_auth/api/endpoints/auth.rb

Instance Method Summary collapse

Instance Method Details

#auth(options = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/london_cab_auth/api/endpoints/auth.rb', line 6

def auth(options = {})
  options = { username: username,
              password: password,
              grant_type: :password,
              client_id: 'AGMIdentityServer',
              client_secret: 'secret',
              scope: 'read' }.merge(options)
  post('Connect/Token', options)
end