Skip to content

Commit

Permalink
Merge pull request #10704 from cBioPortal/demo-fix-genie-api-authoriz…
Browse files Browse the repository at this point in the history
…ation

Replace deprecated Spring Security class
  • Loading branch information
haynescd authored Mar 13, 2024
2 parents 7788d49 + 18f3033 commit 3f2b615
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer;
import org.springframework.security.web.SecurityFilterChain;
import org.springframework.security.web.authentication.HttpStatusEntryPoint;
import org.springframework.security.web.context.SecurityContextPersistenceFilter;
import org.springframework.security.web.context.SecurityContextHolderFilter;
import org.springframework.security.web.util.matcher.AntPathRequestMatcher;

@Configuration
Expand Down Expand Up @@ -85,7 +85,7 @@ public void configure(HttpSecurity http) {
TokenAuthenticationSuccessHandler tokenAuthenticationSuccessHandler = new TokenAuthenticationSuccessHandler();
TokenAuthenticationFilter filter = new TokenAuthenticationFilter("/**", authenticationManager, tokenService);
filter.setAuthenticationSuccessHandler(tokenAuthenticationSuccessHandler);
http.addFilterAfter(filter, SecurityContextPersistenceFilter.class);
http.addFilterAfter(filter, SecurityContextHolderFilter.class);
}

public static ApiTokenFilterDsl tokenFilterDsl(DataAccessTokenService tokenService) {
Expand Down

0 comments on commit 3f2b615

Please sign in to comment.