Skip to content

Feat: Removing deprecated endpoints#220

Merged
tanya732 merged 3 commits intojava-mvc-v2from
feat/remove-deprecated-apis
Apr 29, 2026
Merged

Feat: Removing deprecated endpoints#220
tanya732 merged 3 commits intojava-mvc-v2from
feat/remove-deprecated-apis

Conversation

@tanya732
Copy link
Copy Markdown
Contributor

Changes

The PR has following changes -

  1. Removed deprecated methods from AuthenticationController (handle(request), buildAuthorizeUrl(request, redirectUri))
  2. Removed response != null guards in RequestProcessor.buildAuthorizeUrl(), process(), and AuthorizeUrl.storeTransient()
  3. Simplified assertValidState() — removed session fallback, cookie-only now
  4. Removed session storage calls from AuthorizeUrl.storeTransient() (RandomStorage.setSessionState/Nonce)
  5. Removed InvalidRequestException.getDescription() deprecated method
  6. Deleted RandomStorage.java, SessionUtils.java, and their tests
  7. Updated all tests — session-based tests converted to cookie-based, duplicate test removed, error messages aligned

References

Please include relevant links supporting this change such as a:

  • support ticket
  • community post
  • StackOverflow post
  • support forum thread

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds test coverage
  • This change has been tested on the latest version of Java or why not

Checklist

@tanya732 tanya732 requested a review from a team as a code owner April 28, 2026 18:38
@tanya732
Copy link
Copy Markdown
Contributor Author

@copilot

* @param redirectUri the url to redirect to after authentication
* @param responseType the response type to use
*/
AuthorizeUrl(AuthAPI client, HttpServletRequest request, HttpServletResponse response, String redirectUri, String responseType) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the request assignment is removed, is the HttpServletRequest request parameter still required?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I have updated

@tanya732 tanya732 merged commit 7f99f93 into java-mvc-v2 Apr 29, 2026
2 checks passed
@tanya732 tanya732 deleted the feat/remove-deprecated-apis branch April 29, 2026 09:52
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.

2 participants