Skip to content

Commit

Permalink
Force Method Auth if using oauth2 or saml
Browse files Browse the repository at this point in the history
  • Loading branch information
haynescd committed Jan 18, 2024
1 parent f8a3476 commit 9cb75b6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@

@Configuration
@EnableMethodSecurity(prePostEnabled = true)
@ConditionalOnExpression("{'oauth2','saml','optional_oauth2'}.contains('${authenticate}')")
//TODO: Potentially Delete after import pipeline fixed
@ConditionalOnProperty(name = "security.method_authorization_enabled", havingValue = "true")
@ConditionalOnExpression("{'oauth2','saml'}.contains('${authenticate}')")
public class MethodSecurityConfig {
@Value("${app.name:}")
private String appName;
Expand Down

0 comments on commit 9cb75b6

Please sign in to comment.