Class: PFS::API::AuthenticationService
- Defined in:
- lib/pfs/api/authentication_service.rb
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
Methods inherited from Service
Constructor Details
This class inherits a constructor from PFS::API::Service
Instance Method Details
#login(username, password, options = {}) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/pfs/api/authentication_service.rb', line 6 def login(username, password, = {}) attributes = { username: username, password: password, } response = client.post("/Auth/Jwt", attributes, ) Resources::Authentication::Token.new(response, response.body[:data]) end |