I just announced the newSpring Security 5 modules (primarily focused on OAuth2) in the course:

>> CHECK OUT LEARN SPRING SECURITY

Spring Security - Behind the Scenes

The Security with Spring Tutorial discusses how to introduce security into an MVC project, the Maven dependencies for Spring Security, Login and Logout and some more advanced topics. It also deals with Security for REST – how to Authenticate against a REST API and how to consume the API with RestTemplate.

1. >> The Registration Series

2. >> The Authentication Series

3. >> Core Spring Security

 

4. >> Spring Security with REST

 

>> Other Spring Tutorials

=> How to build REST Services with Spring

=> How to Build the Persistence Layer of an application with Spring and Hibernate, JPA, Spring Data, etc

=> Common Exceptions in Spring with examples – why they occur and how to solve them quickly

 

The entire tutorial in based on this github project. Watch and fork it at will – the project can be used as a starting point for a more full fledged implementation.

I just announced the new Spring Security 5 modules (primarily focused on OAuth2) in the course:

>> CHECK OUT LEARN SPRING SECURITY

Sort by:   newest | oldest | most voted
Cal L F
Guest

Hello Eugen, Will you be doing any OAuth2 integration tutorials where you secure your REST API using an OAuth2 authorization server. That would be amazing. Great work so far!

Eugen Paraschiv
Guest

Hey Cal – actually, I did touch on that here. Hope it helps. Cheers,
Eugen.

Cal L F
Guest

Thanks Eugen, I completely missed that. What about writing a OAuth2 Authorization server 😛

Eugen Paraschiv
Guest

Not yet 🙂

Sakibul Hasan
Guest

any update on this? 🙂

Eugen Paraschiv
Guest

Yes – here it is. Hope it helps. Cheers,
Eugen.

Pawel
Guest
Hi Eugen, I’m working with your Packt video course Spring Security. I like the way you teach. I watched most of videos and now I would like to run some examples. For some reason I can’t run any of them. Im out of ideas whay may be wrong . Could you please look at the stack and maybe give me some advice? 2015-10-14 09:43:59,693 [localhost-startStop-1] INFO o.s.w.c.s.AnnotationConfigWebApplicationContext – Found 1 annotated classes in package [com.packt.springsecurity.backend.spring] 2015-10-14 09:43:59,775 [localhost-startStop-1] INFO o.s.c.a.ClassPathBeanDefinitionScanner – JSR-250 ‘javax.annotation.ManagedBean’ found and supported for component scanning 2015-10-14 09:43:59,785 [localhost-startStop-1] ERROR o.s.web.context.ContextLoader – Context initialization failed java.lang.IllegalArgumentException: null… Read more »
Eugen Paraschiv
Guest

Hey Pawel – glad you’re learning from the course. Two quick notes here. First – can you please open up an issue over on the Github project for the course – and add the full stack trace. That’s going to help me really see what the issue is. Second – can you edit your previous comment and remove the code? It makes the comment very heavyweight but because it’s not the full stack – it doesn’t help to much. Cheers,
Eugen.

kenji
Guest

Hi Eugen,

I’m looking to start a new project, do you thing it’s a good idea to choose spring-boot?

Eugen Paraschiv
Guest

Hey Kenji – without any other info, the very simplistic answer here is yes. Spring Boot is definitely very nice, especially if you already have Spring experience, so my blanket answer here is, yes, go for it.
Cheers,
Eugen.

Rubén Pahíno Verdugo
Guest
Rubén Pahíno Verdugo
Hi Eugen, I’m afraid that’s beyond the scope of these series but I’m facing some trouble trying to understand how own credentials can mix up with third party access. I have no idea how to let my users register both with Facebook/Google and using my own registration server such as the one that we are creating in these series. How can I let them: 1) register with Facebook/Google 2) connect their application accounts with their own Facebook/Google ones after they have registered I’ve being thinking about it for a long time and have some ideas, but none o them seem… Read more »
Eugen Paraschiv
Guest
Hey Ruben – that’s an interesting scenario. First, let’s clarify the “register with G/F” point – that’s a hybrid registration and I’ve only implemented it once, entirely manually, in a client engagement. I could add it to the content calendar of the site – but it’s such a specific and focused usecase that I’m really not sure it would help a lot of people and worth the effort of doing a full writeup about it. Two quick suggestions. First – have a look at Spring Social – that’s going to help you abstract some of the OAuth2 details away and… Read more »
nisha
Guest

Thanks for sharing this one