File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
lib/src/main/java/io/github/patternknife/securityhelper/oauth2/api/config/security/server Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 4747import org .springframework .security .config .annotation .method .configuration .EnableMethodSecurity ;
4848import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
4949import org .springframework .security .config .annotation .web .configurers .AbstractHttpConfigurer ;
50- import org .springframework .security .core .Authentication ;
51- import org .springframework .security .core .AuthenticationException ;
50+
5251import org .springframework .security .crypto .bcrypt .BCryptPasswordEncoder ;
5352import org .springframework .security .crypto .password .PasswordEncoder ;
5453import org .springframework .security .oauth2 .core .OAuth2Token ;
55- import org . springframework . security . oauth2 . server . authorization . authentication . OAuth2AuthorizationCodeAuthenticationToken ;
54+
5655import org .springframework .security .oauth2 .server .authorization .config .annotation .web .configurers .OAuth2AuthorizationServerConfigurer ;
5756import org .springframework .security .oauth2 .server .authorization .token .OAuth2AccessTokenGenerator ;
5857import org .springframework .security .oauth2 .server .authorization .token .OAuth2RefreshTokenGenerator ;
6968
7069import org .springframework .web .servlet .HandlerExceptionResolver ;
7170
72- import java .io .IOException ;
73- import java .util .ArrayList ;
74- import java .util .List ;
7571
7672
7773@ Configuration
@@ -181,9 +177,7 @@ public SecurityFilterChain authorizationServerSecurityFilterChain(
181177 .anyRequest ().authenticated ()
182178 ).exceptionHandling (exceptions -> exceptions .
183179 authenticationEntryPoint (new LoginUrlAuthenticationEntryPoint ("/login" )));
184-
185-
186- // http.exceptionHandling(exceptions -> exceptions.authenticationEntryPoint(new LoginUrlAuthenticationEntryPoint("/login")));;
180+
187181 return http .build ();
188182 }
189183
You can’t perform that action at this time.
0 commit comments