Adding more then one client to the Spring OAuth2 Auth Server : <p>I have Spring OAuth Authorization server and I want to add support for more then one client(id). I configured clients like this:</p>

<pre><code>clients
            .inMemory().withClient(client).secret(clientSecret)
            .resourceIds(resourceId)
            .authorizedGrantTypes("client_credentials", "password", "refresh_token", "implicit", "authorization_code")
            .authorities("ROLE_USER")
            .scopes("read", "write")
            .autoApprove(true)
            .and()
            .inMemory().withClient("acme").secret("acmesecret")
            .resourceIds(resourceId)
            .authorizedGrantTypes("client_credentials", "password", "refresh_token", "implicit", "authorization_code")
            .authorities("ROLE_USER_ACME")
            .scopes("read", "write")
            .autoApprove(true); 
</code></pre>

<p>I can get access token with first client, but i get this error when trying to get access token with second client:</p>

<pre><code>{
  "timestamp": 1456822249638,
  "status": 401,
  "error": "Unauthorized",
  "message": "Bad credentials",
  "path": "/oauth/token"
}
</code></pre>

<p>Is it possible to add more then one client and how to do it? Allso, how to read clients from a database?</p>
