Skip to content

Commit

Permalink
fixing #57
Browse files Browse the repository at this point in the history
  • Loading branch information
ozzi- committed Feb 11, 2022
1 parent e2359b3 commit e68895c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/controllers/JWTInterceptTabController.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public class JWTInterceptTabController implements IMessageEditorTab {
private final JWTInterceptTab jwtST;
private final IExtensionHelpers helpers;
private ITokenPosition tokenPosition;
private boolean resignOnType;
private boolean randomKey;
private boolean chooseSignature;
private boolean recalculateSignature;
Expand Down Expand Up @@ -221,6 +222,7 @@ private void algAttackChanged() {

private void radioButtonChanged(boolean cDM, boolean cRK, boolean cOS, boolean cRS, boolean cCS) {
clearError();
resignOnType = !cDM && !cOS;
boolean oldRandomKey = randomKey;
edited = true;
addMetaHeader = false;
Expand Down Expand Up @@ -353,7 +355,7 @@ private void handleJWTAreaTyped() {
reportError("invalid JWT");
return;
}
if ((recalculateSignature || randomKey) && jwtST.getKeyField().isEnabled()) {
if (resignOnType) {
Output.output("Recalculating signature as key typed");
CustomJWToken token = null;
try {
Expand Down

0 comments on commit e68895c

Please sign in to comment.