Skip to content

Commit d0d053b

Browse files
Update SecurityConfig.java (#1391)
Add "/metadata" to authExceptions so that you don't need a bearer token to get a CapabilityStatement.
1 parent 29138b4 commit d0d053b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/src/main/java/gov/cms/ab2d/api/security/SecurityConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
4747

4848
private final String[] authExceptions = new String[]{"/swagger-ui/**", "/configuration/**",
4949
"/swagger-resources/**", "/v3/api-docs/**", "/webjars/**",
50-
AKAMAI_TEST_OBJECT, "/favicon.ico", "/error", HEALTH_ENDPOINT, STATUS_ENDPOINT};
50+
AKAMAI_TEST_OBJECT, "/favicon.ico", "/error", HEALTH_ENDPOINT, STATUS_ENDPOINT,
51+
"/metadata"};
5152

5253
@Override
5354
protected void configure(HttpSecurity security) throws Exception {

0 commit comments

Comments
 (0)