Spring Security | FULL COURSE

Amigoscode · 980K views · 2019 · 4:57:58

Open on YouTube

Web developmentSecurity & hackingSoftware architecture & designcoursedated

Why Stack Overflow recommends it

Stack Overflow users link it as a thorough walkthrough of Spring Security that they follow along with, and then ask follow-up questions when its older WebSecurityConfigurerAdapter code no longer works.

Recommended by 3 people across 3 different months, 2020 to 2023.

What it is

A nearly five-hour full course from Amigoscode on securing Spring Boot applications with Spring Security. It covers form-based and basic auth, password encoding with BCrypt, roles and permissions, and goes on to JWT, with a companion GitHub repo. Viewers are expected to know basic Java and Spring Boot.

What people said

Strong rec Ishan Garg · 2021-04 · Stack Overflow · on “Best Practices for building restful api service using spring boot with jwt”

Bro If u want to know in depth about security in spring boot with Roles at Different levels JWT I gone through many resource but amigoscode on youtube is best for spring security Below is the link [this video]

Recommends Abdusoli · 2020-07 · Stack Overflow · on “Spring Boot authentication for different types of User”

I recommend you to watch Spring Security Course [link] ( [this video] ). This gives you thorough idea of Spring Security.

Recommends Altaf · 2023-01 · Stack Overflow · on “Using latest Spring Security with an older tutorial not sure how to correctly override configure method”

I am following the linked tutorial on spring security and I am not sure how to proceed with the configure method. [this video] The tutorial's repo has the code below: package com.example.demo.security; import com.example.demo.auth.ApplicationUserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.authentication.dao.DaoAuthenticationProvider; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework.security.config.annotation.method.configuration.EnableGlo

Cites Harry Coder · 2022-05 · Stack Overflow · on “Open API with authentication JAVA SpringBoot”

You need to implement spring security in your project. It will allow you apply Filter to your API depending on your users ROLE or AUTHORITY . Looking at this sample code below, you can see what it looks like: @Override protected void configure(HttpSecurity http) throws Exception { http.csrf().disable() .authorizeRequests() .antMatchers("/", "index", "/css/*", "/js/*") .permitAll() .antMatchers("/api/**").hasRole(STUDENT.name()) .antMatchers(HttpMethod.DELETE, "/management/api/**").hasAnyAuthority(COURSE_WRITE.getPermission()) .antMatchers(HttpMethod.POST, "/management/api/**").hasAnyAuthority(COURSE_WRITE.getPermission()) .antMatchers(HttpMethod.PUT, "/management/api/**").hasAnyAuthority(COU

Cites the-frank · 2022-10 · Stack Overflow · on “What exactly do I need to implement myself in Spring Boot to allow form-based authentication (using Spring Security and MVC)?”

I'm struggling to understand exactly what Spring Security/Spring Boot does under the hood and what is up to me to implement to get form-based authentication up and running ( [LINK] ). For reference, I'm building a web-app and am currently working on the backend, which is developed with Spring Boot. The data is stored in a nonrelational database. I haven't built the frontend yet and I use Postman to test my API's. I followed this ( [this video] ) and this tutorial ( [LINK] ) to get a sense of how to use Spring Security, given the gargantuan size and dispersive nature of the official docs ( [LINK] ). Both tutorials use a deprecated class, but I chose to provisionally use it to make it easier to bui

Cites NikolaJanev · 2023-02 · Stack Overflow · on “The method antMatchers() is undefined for the type AuthorizeHttpRequestsConfigurer<HttpSecurity>.AuthorizedUrl”

package com.nikola.security; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.web.SecurityFilterChain; @Configuration //klasata mora da bide anotirana so @Configuration bidejki e configuration klasa @EnableWebSecurity //so anotiranje na @EnableWebSecurity kazuvame deka vo ovaa klasa ke implementirame se //za security za nasata aplikacija public class ApplicationSecurityConfig { @Bean public SecurityFilterChain securityFilter