Como alterar o ponto de extremidade do token padrão do spring security oauth2?

Temos segurança de primavera aplicativo baseado em oauth2. Tudo está funcionando bem. Mas não foi possível alterar o ponto de extremidade do token padrão de "/ oauth / token" para "/ external / oauth / token".

Meu spring-servlet.xml

<http pattern="/external/oauth/token" create-session="stateless" 
       authentication-manager-ref="clientAuthenticationManager"
       use-expressions="true" xmlns="http://www.springframework.org/schema/security">
      <intercept-url pattern="/external/oauth/token" access="isFullyAuthenticated()" />
      <anonymous enabled="false" />
      <http-basic entry-point-ref="clientAuthenticationEntryPoint" />
      <!-- include this only if you need to authenticate clients via request parameters -->
      <custom-filter ref="clientCredentialsTokenEndpointFilter" after="BASIC_AUTH_FILTER" />
      <access-denied-handler ref="oauthAccessDeniedHandler"/>
</http>

<oauth:authorization-server client-details-service-ref="clientDetails" 
        token-services-ref="tokenServices" 
        user-approval-handler-ref="userApprovalHandler" token-endpoint-url="/external/oauth/token">
        <oauth:authorization-code />
        <oauth:implicit />
        <oauth:refresh-token />
        <oauth:client-credentials />
        <oauth:password />
</oauth:authorization-server>

Mas o resultado ao acessar esse terminal é

{
    error: "unauthorized"
    error_description: "An Authentication object was not found in the SecurityContext"
}

estou sentindo falta de alguma coisa? Por favor sugira.

questionAnswers(4)

yourAnswerToTheQuestion