Created
December 8, 2022 20:16
-
-
Save dougnoel/361a7a67b80de137866a02c4e71bbf48 to your computer and use it in GitHub Desktop.
Code removed from com.dougnoel.sentinel.steps.APISteps.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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