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

[feature]: Add support for mocking jwt tokens #343

Closed
1 task done
gouravkrosx opened this issue Feb 28, 2023 · 4 comments
Closed
1 task done

[feature]: Add support for mocking jwt tokens #343

gouravkrosx opened this issue Feb 28, 2023 · 4 comments
Labels
Enhancement New feature or request GSoC Issues up for GSoC Repo/@java-sdk Issue Related to Keploy Java-sdk Repository

Comments

@gouravkrosx
Copy link
Member

Is there an existing feature request for this?

  • I have searched the existing issues

Summary

By adding support for mocking JWT tokens, It will allow developers to simulate the authentication flow and test their code without the need for actual tokens.

The feature can be subcategorized into the following components:

  • A mechanism to capture time-based tokens like JWT and record the time for each token in a YAML file along with the test cases.
  • Identify the methods that return the Time object used inside JSON Web Tokens (JWTs) and override them to return the recorded time during test mode.
  • The ability to read the recorded time from the YAML file and mock the expired time to simulate the authentication flow during test mode.
  • The implementation should use runtime ASM instrumentation libraries like ByteBuddy to minimize changes required in the user API.

Why should this be worked on?

  • By this, We will be able to mock the JWT tokens when recording test cases and will be able to replicate them during the test run.
  • This will enhance mocking feature of keploy.
@gouravkrosx gouravkrosx added Enhancement New feature or request GSoC Issues up for GSoC labels Feb 28, 2023
@AnkitKumarvaid AnkitKumarvaid transferred this issue from keploy/java-sdk Mar 3, 2023
@AnkitKumarvaid AnkitKumarvaid added the Repo/@java-sdk Issue Related to Keploy Java-sdk Repository label Mar 3, 2023
@reem-atalah
Copy link

If no one working on this, can I be assigned to this issue

@Sarthak160
Copy link
Member

Yes @reem-atalah you can work on this issue .

@Harsh4902
Copy link

Hey @reem-atalah I want to work on this issue. Can I collaborate with you?

@charankamarapu
Copy link
Member

charankamarapu commented Dec 5, 2023

Issue is irrelevant as keploy v1 is no longer supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request GSoC Issues up for GSoC Repo/@java-sdk Issue Related to Keploy Java-sdk Repository
Projects
None yet
Development

No branches or pull requests

6 participants