Skip to content

US1735231 - Added support for encoded tokens#80

Open
amoghng7 wants to merge 2 commits into
masterfrom
p/amogh/US1735231
Open

US1735231 - Added support for encoded tokens#80
amoghng7 wants to merge 2 commits into
masterfrom
p/amogh/US1735231

Conversation

@amoghng7
Copy link
Copy Markdown
Collaborator

Added support for encoded token and added a deprecation warning for decoded tokens

Testing done

Following tests were done:

  1. Add a new Fortify Token

  2. Insert a UUID token

  3. A Warning "You are using a decoded token. Decoded tokens are deprecated and will not be supported in future releases!" must be displayed

  4. Add a new Fortify Token

  5. Insert any token

  6. There must be no warning or error messages

  7. Add a new Fortify Token

  8. Keep the text box empty

  9. There must be an error message "Token cannot be empty!"

Submitter checklist

  • [ x ] Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • [ x ] Ensure that the pull request title represents the desired changelog entry
  • [ x ] Please describe what you did
  • [ x ] Link to relevant issues in GitHub or Jira
  • [ x ] Link to relevant pull requests, esp. upstream and downstream changes
  • [ x ] Ensure you have provided tests - that demonstrates feature works or fixes the issue

@amoghng7 amoghng7 self-assigned this Feb 17, 2025
@amoghng7 amoghng7 requested a review from SangameshV February 17, 2025 18:51
…order

- TokenUtil.java: Fix @param mismatch (inputString -> str) that broke CI Javadoc
- TokenUtil.java: Add MIT license header
- TokenUtil.java: Remove unused isBase64Encoded() method and related constants
- TokenUtil.java: Fix modifier order (private static final)
- StandardFortifyApiToken.java: Reorder doCheckToken() to check blank before UUID
- ApiClientWrapper.java: Add space after 'if' keyword
- Add TokenUtilTest.java with unit tests for isUuid()
Copilot AI review requested due to automatic review settings March 31, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant