Optional Authorization in Introspection Endpoint #1832
Description
In my company we are using a old version of Axway Security Token Services and this version don`t accept Authentication in check_token endpoint.
Reading the code I discovered that in this point (https://github.com/spring-projects/spring-security-oauth/blob/master/spring-security-oauth2/src/main/java/org/springframework/security/oauth2/provider/token/RemoteTokenServices.java) the method loadAuthentication() is loading the credentials:
MultiValueMap<String, String> formData = new LinkedMultiValueMap<String, String>(); formData.add(tokenName, accessToken); HttpHeaders headers = new HttpHeaders(); headers.set("Authorization", getAuthorizationHeader(clientId, clientSecret));
I know this follow the RFC Token Introspection but in our case we need override this method to work with this version of Axway STS that don`t follow RFC as expected (unhappy).
I would like to know if I can open a Merge Request to give an option to remove the Authorization when needed.