You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, none of these approaches resolved the authentication issue, there would always be a 401 status code in the responses of the requests I had sent.
And I never found the information in network log like the following content
2022-10-25 16:29:56.826: Will refresh token: python f:/restler-fuzzer-main/restler_workdir_1.0/auth.py
2022-10-25 16:29:56.913: New value: {u'api': {}}
Authorization: Bearer xxx
I have verified that the file paths are correct.
The text was updated successfully, but these errors were encountered:
Description
I followed the guide in
SettingsFile.md
to add a token for authentication in Restler. I configured theengine_settings.json
file as follows:In this configuration, the token is expected to be stored in a file named
token.txt
. Here's an example of how thetoken.txt
file looks like:and the fuzzing command is
However, this setup did not work as expected.
I also attempted another approach by using a Python script (
token.py
) to generate the token dynamically. Here's the content of thetoken.py
file:I then modified the Restler command to include the token_refresh_command option:
Even with this method, Restler still failed to authenticate properly.
Additionally, I tried adding the token directly into the dictionary file (
dict.json
) using therestler_custom_payload_header
option:However, none of these approaches resolved the authentication issue, there would always be a 401 status code in the responses of the requests I had sent.
And I never found the information in network log like the following content
I have verified that the file paths are correct.
The text was updated successfully, but these errors were encountered: