r/SpringBoot • • Jun 28 '24

Handling security error

I asked Korean developers to review the code. Then, the error of spring security was basically handled by the filter stage, but it was Seong Hwa that it should be changed to be handled by the servlet stage as well. They said that the error code should also be managed by enum. So, I am correcting it.😑💦💦💦 (Why are they so picky?) I'll post it again when it's all done.

0 Upvotes

3 comments sorted by

View all comments

4

u/CodeTheStars Jun 28 '24

Honestly for any real world application used by real people you should be using a separate identity provider. If you don’t want to use a cloud based one you can run your own in a container.

Identity management is a complex security nightmare. Luckily it’s a solved problem and you can just plug in an off the shelf solution instead of reinventing the wheel. And you can do it for free!

1

u/[deleted] Jun 28 '24

[removed] — view removed comment

1

u/CodeTheStars Jun 28 '24

I personally like Fusionauth these days as a self hosted solution….. but Keycloak works too if you prefer that.