We use the following version of spring-security-oauth2:
<dependency>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
<version>2.0.11.RELEASE</version>
</dependency>
When enabling the authorizationserver and configuring it, the framework enables default APIs like "/oauth/check_token" or "/oauth/token_key".
I don´t use these APIs (except "oauth/token") and want to disable them to prevent misusage. Currently I am overriding the mapping of these urls as a workaround. I tried to use an exclude filter on component scan, but it had no effect. Is there a more convenient way to disable those APIs?