Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: JohnNiang <[email protected]>
  • Loading branch information
JohnNiang committed Sep 26, 2024
1 parent 0a553a5 commit a29d5e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.springframework.web.server.WebFilter;
import org.springframework.web.server.WebFilterChain;
import reactor.core.publisher.Mono;
import run.halo.app.core.extension.service.UserConnectionService;
import run.halo.app.core.user.service.UserConnectionService;
import run.halo.app.security.AuthenticationSecurityWebFilter;

@Component
Expand All @@ -23,15 +23,16 @@ public class HaloOAuth2AuthenticationWebFilter implements AuthenticationSecurity

public HaloOAuth2AuthenticationWebFilter(Oauth2LoginConfiguration configuration,
ServerSecurityContextRepository securityContextRepository,
UserConnectionService userConnectionService,
UserConnectionService connectionService,
ReactiveUserDetailsService userDetailsService) {
var authManager = new OAuth2LoginReactiveAuthenticationManager(
new WebClientReactiveAuthorizationCodeTokenResponseClient(),
new DefaultReactiveOAuth2UserService()
);
var filter = new HaloOAuth2LoginAuthenticationWebFilter(
authManager, configuration.getAuthorizedClientRepository(),
userConnectionService,
authManager,
configuration.getAuthorizedClientRepository(),
connectionService,
userDetailsService
);
filter.setRequiresAuthenticationMatcher(configuration.getAuthenticationMatcher());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
import org.springframework.security.web.server.WebFilterExchange;
import org.springframework.security.web.server.authentication.AuthenticationWebFilter;
import reactor.core.publisher.Mono;
import run.halo.app.core.extension.service.UserConnectionService;
import run.halo.app.core.user.service.UserConnectionService;
import run.halo.app.security.authentication.oauth2.HaloOAuth2AuthenticationToken;

class HaloOAuth2LoginAuthenticationWebFilter
extends AuthenticationWebFilter {
class HaloOAuth2LoginAuthenticationWebFilter extends AuthenticationWebFilter {

private final ServerOAuth2AuthorizedClientRepository authorizedClientRepository;

private final run.halo.app.core.extension.service.UserConnectionService connectionService;
private final UserConnectionService connectionService;

private final ReactiveUserDetailsService userDetailsService;

Expand Down

0 comments on commit a29d5e1

Please sign in to comment.