Below code uses inmemory to save the tokens in session, is it possible to store the tokens in DB and retrieve it from the same ?
whether the below code will give performance issue?
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
// @formatter:off
clients
.inMemory()
.withClient("clientapp")
.authorizedGrantTypes("password", "refresh_token")
.authorities("USER")
.scopes("read", "write")
.resourceIds(RESOURCE_ID)
.secret("123456");
/*.accessTokenValiditySeconds(2400)
.refreshTokenValiditySeconds(4800);*/
// @formatter:on
}