varadvk / jwt-youtube

7 stars 9 forks source link

Refactor security configuration #3

Open edugreat opened 1 year ago

edugreat commented 1 year ago

Fixes #2

edugreat commented 1 year ago

Pull Request Title: Updated Configuration: Deprecated Class Removal and HttpSecurity Lambda DSL Implementation

Pull Request Description: Hi Varadvk,

In this pull request, I've made some significant improvements to the configuration setup. Here's a summary of the changes:

Deprecated Class Removal: I've dropped the outdated and deprecated WebSecurityConfigurerAdapter in favor of a more modern approach using component-based configuration. This change ensures a cleaner and more maintainable configuration setup.

HttpSecurity Lambda DSL Implementation: To enhance the security configuration, I've implemented the HttpSecurity lambda DSL (Domain Specific Language). This allows us to define security rules in a more expressive and concise manner, making it easier to manage and understand the security configuration.

Please review the changes, and I'm open to any feedback or suggestions.

Thank you for your time and consideration and I love the effort you made in demystifying Spring Security.

Best regards, Chinedu

varadvk commented 1 year ago

Thanks for taking time and contributing to this project. I really appreciate your efforts. Will review above changes and merge in into the repo.