I have Spring OAuth Authorization server and I want to add support for more then one client(id). I configured clients like this:
clients
.inMemory().
Do not use multiple inMemory
builders, instead concatenate multiple withClient
s inside one inMemory
:
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
clients.inMemory()
.withClient("first")
.secret("secret")
.scopes("read")
.authorizedGrantTypes("password")
.and()
.withClient("sec")
.secret("secret")
.scopes("read")
.authorizedGrantTypes("password");
}