Module: Cyclid::Client::Auth
- Included in:
- Tilapia
- Defined in:
- lib/cyclid/client/auth.rb
Overview
Authentication related methods
Instance Method Summary collapse
-
#token_get(username, claims = {}) ⇒ Hash
Retrieve a JWT token from the server.
Instance Method Details
#token_get(username, claims = {}) ⇒ Hash
Retrieve a JWT token from the server.
29 30 31 32 33 34 35 |
# File 'lib/cyclid/client/auth.rb', line 29 def token_get(username, claims = {}) uri = server_uri("/token/#{username}") res_data = api_json_post(uri, claims) @logger.debug res_data return res_data end |