Method: Auth::ClientCredentials::Service#build_request_body
- Defined in:
- lib/lighthouse/auth/client_credentials/service.rb
#build_request_body(assertion, scopes, auth_params = {}) ⇒ Hash (private)
Returns body of request to get access token.
86 87 88 89 90 91 92 93 94 |
# File 'lib/lighthouse/auth/client_credentials/service.rb', line 86 def build_request_body(assertion, scopes, auth_params = {}) auth_params = {} if auth_params.nil? { grant_type: 'client_credentials', client_assertion_type: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer', client_assertion: assertion, scope: scopes.join(' ') }.merge(auth_params) end |