How to configure Spring Security Authentication - Java Brains

preview_player
Показать описание
In this video, you’ll learn how to configure the authentication mechanism of Spring Security. We’ll learn this by creating a couple of users in memory and have Spring Security authenticate and verify against them. The process you’ll learn in this video is *the* way to do authentication configuration in Spring Security and will be the useful to you irrespective of whatever your actual authentication approach is.

#JavaBrains #BrainBytes #WhatIs #SpringSecurity #Spring #SpringBoot #Java #Tutorial
Рекомендации по теме
Комментарии
Автор

Hi Javabrains, I love all your videos very relatable and smooth but for the security video, web security adapter has been deprecated, I would love it if we could get the updated version of this lesson. Thank you sir.

jennymercy
Автор

Thank you! It would be great if you added a guide on upgrading WebSecurityConfigurerAdapter - it's deprecated now. But once again - thank you very much for the guides! They're awesome!

go_better
Автор

Sir, i have been following you since your first video on youtube and javabrains. I have gone through all your videos and learnt a lot. I work for a MNC company, and trust me it is because of only YOU. Thank you .Indeed.

asifiqbal
Автор

When I'll get job, I'll buy all of your courses cause u a amazing man

nursd
Автор

Can you please make a playlist on integrating angular with spring boot and spring boot security??

kaleemullahnizamani
Автор

Note for my ref:
How to configure authentication
configure () method provided by the authenicationmanager class
Two steps for this
1. Get hold of authenicationmanager builder class
2.set the configuration
@enablewebsecuirty
Extend websecuityconfigureadapter class and override configure() method
.setauthorizationtype()
. user ()
.password()

MrEvmk
Автор

As you know, in Spring-Security websecurityconfigureradapter is deprecated, now how to configure AuthenticationManagerBuilder and HttpSecurity using In-Memory, JPA and JWT. Please explain.

SawanKumar-ygem
Автор

If anyone runs the code with no errors, but can't access your routes even with a successful login, do the next tutorial part.
I had a problem where, even though the login form doesn't return "bad credentials" feedback, it didn't reroute me and I couldn't manually change to those routes. Finish part 5 and you'll be good.

Thank you for your great courses @Koushik!!!

InquisitorEmir
Автор

It would be great to include spring security with ldap. As always great video

ChristianAltamiranoAyala
Автор

it is mandatory that to say that u r very genious

parvezahmed
Автор

I was expecting the video will contain how to configure security like how it's done in production

Ravikirankada
Автор

Hi Sir,
The video is great. However wanted to point out that from SpringBoot 2, WebSecurityConfiguerAdapter is deprecated. As SpringBoot 2 supports only Java 8 and above, they took the advantage of default methods in interfaces and introduced WebSecurityConfiguer interface. You can implement the interface and there is no change in any of the methods though. Request you to mention it in further videos.
Many thanks for the great job done by you.

jvmadhav
Автор

websecurityconfigureradapter is now depricated

ayushjaiswal
Автор

Sir you have the idea whats going behind each and every method you explain. How you are getting that knowledge, through spring documentation or any other reading material. Knowing that will be really helpful when a new concept/version comes in or any changes happen, then we can follow those steps and learn ourself.

akalankagamage
Автор

This way is removed from latest Spring Boot. Maybe update the content? Thanks a lot. I love this tutorial.

leiwang
Автор

In order to extend WebSecutiryConfigurerAdapter I had to use @Configuration annotation before the class declaration and use these dependencies -
<dependency>


</dependency>
<dependency>


<scope>test</scope>
</dependency>

weirdhat
Автор

Thank You So much Sir for changing my life.😇🙏🙌💐 You are brilliant ❤🥰
I will be very very thankful to you Sir 🙏

bachchaparty
Автор

For postman you have to disable csrf and use basic authentication

johnpeter
Автор

Incase someone is facing issues with the code not running properly use this code:

@Configuration
public class SecurityConfiguration {
@Bean
public InMemoryUserDetailsManager userDetailService() {
UserDetails user = User.builder()
.username("blah")
.password("{noop}blah")
.roles("USER")
.build();
return new
}
}

erenyeager
Автор

Hi Koushik,
Could you please take examples of securing apps you created in microservices series it will cover two topics security in general and with spring cloud....

Thanks 😊

sandeepshingne