Class: ProxyAuth::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/proxy_auth/connection.rb

Overview

Connects to proxy and gets service token

Instance Method Summary collapse

Instance Method Details

#service_tokenObject



4
5
6
7
# File 'lib/proxy_auth/connection.rb', line 4

def service_token
  register_service
  @response && JSON.parse(@response.body)['token']
end