Skip to content

Instantly share code, notes, and snippets.

@dougnoel
Created December 8, 2022 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dougnoel/361a7a67b80de137866a02c4e71bbf48 to your computer and use it in GitHub Desktop.
Save dougnoel/361a7a67b80de137866a02c4e71bbf48 to your computer and use it in GitHub Desktop.
Code removed from com.dougnoel.sentinel.steps.APISteps.java
/**
* Gets a JWT Token from a currently open browser that you have logged into
* and sets it for the curently active API
*/
@When("^I scrape the JWT from the current page$")
public void scrapeJWT() {
AuthenticationType authType = AuthenticationType.JWT;
APIManager.getAPI().setAuthType(authType);
APIManager.getAPI().setAuthToken();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment