'Authorize request token.
For more information, please refer to the official API reference:
http://developer.openstack.org/api-ref/identity/v3-ext/#authorize-request-token'

def authorize_request_token(self, request_token_id, role_ids):

    roles = [{'id': role_id} for role_id in role_ids]
    body = {'roles': roles}
    post_body = json.dumps(body)
    (resp, body) = self.put(('OS-OAUTH1/authorize/%s' % request_token_id), post_body)
    self.expected_success(200, resp.status)
    body = json.loads(body)
    return rest_client.ResponseBody(resp, body)
