Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up automation for generating token for original request #299

Open
stevieg27 opened this issue May 11, 2023 · 3 comments
Open

Set up automation for generating token for original request #299

stevieg27 opened this issue May 11, 2023 · 3 comments
Assignees
Labels
feature request Requesting a new feature

Comments

@stevieg27
Copy link

Hi team,

As discussed with earlier with ankush currently during scheduled scans akto can only use original request which contains the tokens which are already invalid ( generally it would be mostly valid for 15 minutes - 1 hour max ). So it would result in unauthenticated response from the server and the scan results would be incomplete. It would be great if we could have functionality where akto can automatically create token by already provided credentials and attach to those original request which would result in better meaningful scan results.

@professorabhay
Copy link

Hi @stevieg27 @ankush-jain-akto @Ankita28g, It will be an helpful feature.
Please look into that https://github.com/professorabhay/files/blob/main/automatedToken.java
I am interested to work on it under guidance !! 🙂

@Ankita28g
Copy link
Contributor

thanks @stevieg27 and @professorabhay

let us get back to you! :)

@Ankita28g Ankita28g added the feature request Requesting a new feature label May 24, 2023
@ankush-jain-akto
Copy link
Contributor

Hi @stevieg27

We have this feature now.

  1. Create a Test Role with automated (or hard-coded) auth token.
  2. Use this new role for running test.

It does exactly what you suggested. It fetches fresh credentials and attaches them in the original request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requesting a new feature
Projects
None yet
Development

No branches or pull requests

4 participants