r/SpringBoot • u/Yew2S Junior Dev • Oct 19 '24
is spring security enough to have a fully secured system (auth, endpoints...) ?
Well I'm building a RESTful API for my project, I'm about to set up security for auth and my endpoints, so my question is can we have a fully secured system only by spring security without the need of any 3rd party tools like JWT or oauth2...
27
Upvotes
7
u/smutje187 Oct 19 '24
JWT is not a third party tool, Spring can produce JWT on its own - it’s just a signed JSON document.
2
5
4
9
u/wpfeiffe Oct 19 '24
Yes it will support your own auth out of the box. If you are good with session based security, there is just a little bit to implement/config and it locks down endpoints, supports CORS security etc. It defaults to least access principles. Not the easiest to work with but it is secure when configured correctly.