Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring Oauth2 AuthorizationServer  RSS feed

 
amithk kumar
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to Spring Oauth2. I created two classes SecurityConfig for basic spring security configuration and AuthorizationServer  for spring oauth2 authorization server configuration

What i learned from spring security in  configure method of the below code is that  User Named test is assigned a role of USER.



and when



  the configure(HttpSecurity http) is configured , any url that is accessed in the code  will need a basic authentication and user must provide his/her username and password to access the urls.

This is about spring security


can anyone explain that


this will  call configure(AuthenticationManagerBuilder auth)
of the SecurityConfig.java?


and what will endpoints.authenticationManager(authenticationManager); method does from the below code?





 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!