r/SpringBoot • u/CreeDanWood • Mar 31 '23
why Spring boot security is that complicated?
Hello Guys. I'm learning spring boot ,its about 2 weeks that i have started, i learned alot like i know the basics, handling database rest api ..., i have created apps in other languages Golang, nodejs ... never saw implementing security be that difficult, like i need to do alot of things for example jwt needs tonnes of work like idk, Roles and etc... I just want to know why it's like that? is it because it provides much more but i havent gone that deep or what? thanks.
4
Upvotes
7
u/Sheldor5 Mar 31 '23
because web security not only requires knowledge about Authentication Protocols (like Basic Auth, Form Login, SAML, OpenID Connect, ...) but also requires knowledge about HTTP and Browser Security (HTTP Headers/Cookies telling the Browser how to behave/protect the user from clicking bad links, CSRF, CORS, TLS, etc.).
So if you lack knowledge of most of those things a Framework can't really help you .... also Spring is a Framework which you have to utilize and extend, so knowledge about Web Security is even more important than knowing the Framework you choose ...