When I update the access token prefix from Bearer (Default) to BearerToken it still only validates requests with Bearer. I tested this Postman but I want it to be BearerToken since that is what Spring's OAuth2RestTemplate generates:
LoggingRequestInterceptor | REQUEST HEADERS : {Authorization=[BearerToken GWeOoUiHXWI8RONiFX335aN0IK5F].....
Here is the Policy:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <OAuthV2 async="false" continueOnError="false" enabled="true" name="verify-oauth-v2-access-token"> <DisplayName>Verify OAuth v2.0 Access Token</DisplayName> <Operation>VerifyAccessToken</Operation> <AccessTokenPrefix>BearerToken</AccessTokenPrefix> </OAuthV2>
Is this correct?
Is there a way to specify both Bearer and BearerToken?