Procházet zdrojové kódy

Merge branch 'develop' of gitadmin/tuoheng_oidc into release

tags/v2.3.0
gitadmin před 1 rokem
rodič
revize
698314e556
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. +2
    -1
      tuoheng_oidc_server/src/main/java/com/tuoheng/config/SecurityConfig.java

+ 2
- 1
tuoheng_oidc_server/src/main/java/com/tuoheng/config/SecurityConfig.java Zobrazit soubor

@@ -1,5 +1,6 @@
package com.tuoheng.config;

import com.tuoheng.handler.AuthenticationEntryPoint;
import com.tuoheng.oauth2.authentication.OAuth2ResourceOwnerPasswordAuthenticationConverter;
import com.tuoheng.handler.AccessDeniedHandler;
import com.tuoheng.mapper.UserMapper;
@@ -99,7 +100,7 @@ public class SecurityConfig {
.and()
.oauth2ResourceServer(OAuth2ResourceServerConfigurer::jwt)
.exceptionHandling(exceptions -> exceptions
.authenticationEntryPoint(new LoginUrlAuthenticationEntryPoint("/toLogin"))
.authenticationEntryPoint(new AuthenticationEntryPoint())
.accessDeniedHandler(new AccessDeniedHandler()))
//.authenticationEntryPoint(new AuthenticationEntryPoint()))
.apply(authorizationServerConfigurer);

Načítá se…
Zrušit
Uložit