lib/fusionauth/fusionauth_client.rb in fusionauth_client-1.15.2 vs lib/fusionauth/fusionauth_client.rb in fusionauth_client-1.15.3

- old
+ new

@@ -41,20 +41,17 @@ @tenant_id = tenant_id end # # Takes an action on a user. The user being actioned is called the "actionee" and the user taking the action is called the - # "actioner". Both user ids are required. You pass the actionee's user id into the method and the actioner's is put into the - # request object. + # "actioner". Both user ids are required in the request object. # - # @param actionee_user_id [string] The actionee's user id. # @param request [OpenStruct, Hash] The action request that includes all of the information about the action being taken including # the id of the action, any options and the duration (if applicable). # @return [FusionAuth::ClientResponse] The ClientResponse object. - def action_user(actionee_user_id, request) + def action_user(request) start.uri('/api/user/action') - .url_segment(actionee_user_id) .body_handler(FusionAuth::JSONBodyHandler.new(request)) .post() .go() end @@ -920,14 +917,18 @@ # This API may be used in an SSO configuration to issue new tokens for another application after the user has # obtained a valid token from authentication. # # @param application_id [string] The Application Id for which you are requesting a new access token be issued. # @param encoded_jwt [string] The encoded JWT (access token). + # @param refresh_token [string] (Optional) An existing refresh token used to request a refresh token in addition to a JWT in the response. + # <p>The target application represented by the applicationid request parameter must have refresh + # tokens enabled in order to receive a refresh token in the response.</p> # @return [FusionAuth::ClientResponse] The ClientResponse object. - def issue_jwt(application_id, encoded_jwt) + def issue_jwt(application_id, encoded_jwt, refresh_token) start.uri('/api/jwt/issue') .authorization('JWT ' + encoded_jwt) .url_parameter('applicationId', application_id) + .url_parameter('refreshToken', refresh_token) .get() .go() end #