Add a security interceptor for actuator endpoints

Update `AbstractEndpointHandlerMapping` to support a security
interceptor that can be used to enforce endpoint security.

Fixes gh-6889
This commit is contained in:
Madhura Bhave
2016-11-29 11:22:48 -08:00
parent f6b0652369
commit d09aafacda
25 changed files with 437 additions and 116 deletions

View File

@@ -35,7 +35,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
@RunWith(SpringRunner.class)
@SpringBootTest
@TestPropertySource(properties = "endpoints.hypermedia.enabled: true")
@TestPropertySource(properties = {"endpoints.hypermedia.enabled: true", "management.security.enabled: false"})
public class SampleHypermediaGsonApplicationTests {
@Autowired