title: Spring Security authentication via token
body: <p>I have a server with an API. Server is protected by Spring Security.</p>
  
  <p>I want to have an access to the API from an external applications using tokens in request parameters</p>
  
  <p>Firstly user will go to a service which gives him a token and then access the API with this token.</p>
  
  <p>But I want to preserve previous access to the API through standard Spring Security solutions.</p>
  
  <p>So, could you please help me, how can I implement this?</p>