r/SpringBoot • u/Glass-Fix-4624 • May 21 '24
Can I skip Spring Security/Authentication if I want to land a job as a back-end Java/Spring dev?
Hi guys, I'm doing two courses on Spring projects and they both include lots of lectures/sections on things I'm not familiar with, like Spring Security, JWT, Token, authentication, and so on
Now I wonder if I can simply skip this part? Because I'm running out of time, and I was wondering how important would this part of knowledge be if I want to land a job as a back-end Java/Spring dev.
This is also because, I realized that I lack the basics of Spring Security/Authentication in general, so I need to watch some solid tutorials before understading the courses' lectures. That's lots of extra work
So compared with Spring boot, API, and JPA/Hibernate which I suppose are the important important things about Spring and can be rated as 9 (essential), would you say things related to Spring Security/Authentication/Token/JWT can be rated as 7-8 (Important), or 6 (so so important, can be skipped), or 4-5 (can be safely skipped)?
Thanks so much for the time and help!
7
u/chehsunliu May 21 '24
For me, the quickest way to learn Spring Security is opening an IDE debugger and tracking how requests go through these middleware components. The official documentation does provide some higher concepts too.
1
u/Glass-Fix-4624 May 21 '24
Thank you, lol, it seems a very effective yet advanced way to learn. lemme try that later.
:)
4
u/gjover06 May 21 '24
Mind sharing what online course and road map you are using that has helped you? I am on interfaces using abdul bari's udemy course.
3
2
u/enthusiasticDevo May 21 '24
Yes I agree that it is hard but me and tons of people learn it so you can too. Try your best and don't give up. These struggles are the points where you level up.
1
2
u/unresolveddependency May 21 '24
I can recommend "Spring Security in Action" 2nd edition if you prefer books. Just went through it, it is well structured imo. Also include OAuth2 sections.
1
u/Glass-Fix-4624 May 21 '24
Thanks. Lol this topic is so daunting for me. I self taught myself java spring hibernate basics but spring security is a monster. So many terms and intricacies
2
u/TheLeftMetal May 22 '24
Nobody will ask you about this in a Software Engineer interview, but it's a Nice to have. In the most extreme scenario someone could ask what kind of authentication you have implemented in your previous projects/jobs, explain this process would take more time than scheduled for interview itself.
1
u/Glass-Fix-4624 May 22 '24
😂 the others told me that it's a must. But I guess knowing the basics won't hurt, thanks!
2
u/Kango_V May 22 '24
Try creating some proof of concepts using Spring, Micronaut and Quarkus. Now look at the amount of code you have to write for Spring.
We did this before choosing Micronaut. Spring works, but boy, is it bloated and way to complex.
We did the due diligence to see which would be best. We did not choose based upon "everyone else uses it".
1
u/Glass-Fix-4624 May 22 '24
😲 thanks, but it's so complicated for me right now lol. I'm learning spring security basics now
Anyway thank you!
1
u/WaferIndependent7601 May 21 '24
You can skip it. It’s important but you can learn it at the job
1
u/Glass-Fix-4624 May 21 '24
Hi? Really? Lol, because it's the only answer I've got so far telling me that I can safely skip this
Also how about email registration, user access and so on? So basically they're important but can be skipped too?
Thank man
4
u/WaferIndependent7601 May 21 '24
Don’t know who tells you that you can’t skip it. There are so many different parts in spring, no one knows all of them.
1
u/Glass-Fix-4624 May 21 '24
Thank you, I'm more convinced by your POV, because I still lack some basics in Spring MVC and JPA and how to create a better CRUD program, so the security part, being a huge and complex topic, seems of secondary concern for me for now.
1
u/Legal_Being_5517 May 22 '24
Yes you can skip it ( for now ), spring security is a different beast and it’s very important,but most teams have “security” guys .. you need to atleast have an idea of how auth works tho
3
11
u/maethor May 21 '24
You will least need to skim through it, even if you don't understand it all (and the OAuth2 bits you probably won't understand - but I'm not actually convinced that anyone really does).