title: Oauth2 Spring Security Authorization Code
body: <p>I am trying to reproduce the oauth server provided here:</p>
  
  <p><a href="https://spring.io/blog/2015/02/03/sso-with-oauth2-angular-js-and-spring-security-part-v" rel="nofollow">https://spring.io/blog/2015/02/03/sso-with-oauth2-angular-js-and-spring-security-part-v</a>
  The curl call for testing this basic server should be:</p>
  
  <pre><code>curl acme:acmesecret@localhost:9999/uaa/oauth/token  \
  -d grant_type=authorization_code -d client_id=acme     \
  -d redirect_uri=http://example.com -d code=jYWioI
  </code></pre>
  
  <p>Though I keep getting the following error:
      Invalid authorization code: jYWioI</p>
  
  <p>Where is this authorization code to be configured in the authorization server?</p>