Method: KineticSdk::Integrator#generate_jwt
- Defined in:
- lib/kinetic_sdk/integrator/integrator-sdk.rb
#generate_jwt(options = {}) ⇒ Object
Generate a JWT for bearer authentication based on the user credentials, and oauth client configuration.
117 118 119 120 121 122 |
# File 'lib/kinetic_sdk/integrator/integrator-sdk.rb', line 117 def generate_jwt( = {}) oauth_client_id = [:options][:oauth_client_id] oauth_client_secret = [:options][:oauth_client_secret] jwt_response = kinetic_core_sdk().jwt_token(oauth_client_id, oauth_client_secret) jwt_response.content["access_token"] end |