Can we change the `auth = api.authenticate_by_user_name("username@yourservice.com", "<terminal identifier>")` line to use the `user_name` and `requester_terminal_id` variables as well? Doublecheck me, but it should turn into the following:

    auth = api.authenticate_by_user_name(user_name, requester_terminal_id)