Skip to content

Refactoring to avoid deprecated methods #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Anton15K
Copy link

@Anton15K Anton15K commented Mar 4, 2025

Hello and thank you for your repository. It saved me countless hours trying to understand how to use spring security and jwt tokens in my code for my project. I believe that it might be useful for others too, so here is some small refactoring, so code stays up to date with the latest version of spring security.

This pull request includes several changes to improve the security configuration and token handling in the Spring Security Demo project. The most important changes include modifying the User class, updating the CSRF configuration, and enhancing the JWT token processing.

Changes to User class:

Security configuration updates:

JWT token handling improvements:

Database configuration change:

@Anton15K Anton15K marked this pull request as draft March 6, 2025 10:46
…endencies, and change User and Role classes to data classes
@Anton15K Anton15K marked this pull request as ready for review March 8, 2025 16:39
@Anton15K
Copy link
Author

Anton15K commented Mar 8, 2025

I have made small refactoring as you requested

@Anton15K Anton15K requested a review from hadiyarajesh March 8, 2025 17:15
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