Skip to content

Commit

Permalink
chore: fix leftover code in cred provider
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-s committed Feb 6, 2025
1 parent 8d306d4 commit 046e828
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,14 @@
import java.util.HashSet;
import java.util.Set;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;

@Service
@Slf4j
public class CoreCredentialsProvider implements ConfigurationProvider, CredentialsProvider, InitializingBean {
public class CoreCredentialsProvider implements ConfigurationProvider, CredentialsProvider {

private JwtTokenService jwtTokenService;
private CoreCredentialsConfig config;
Expand Down Expand Up @@ -96,11 +95,6 @@ public void setProjectAuthHelper(AuthorizableAwareEntityService<Project> project
this.projectAuthHelper = projectAuthHelper;
}

@Override
public void afterPropertiesSet() throws Exception {
Assert.notNull(config, "config not initialized");
}

@Override
public CoreCredentials get(@NotNull UserAuthentication<?> auth) {
if (jwtTokenService == null) {
Expand Down

0 comments on commit 046e828

Please sign in to comment.