我正在使用oauth2使用客户端凭据授予类型来验证客户端。这里实现了AuthorizationServerConfigurerAdapter并覆盖了如下所示在内存中使用的ClientDetailsServiceConfigurer配置方法
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
clients.inMemory()
.withClient(clientId)
.secret(clientSecret).authorizedGrantTypes(grantType)
.scopes(scope).accessTokenValiditySeconds(Integer.parseInt(tokenValidity));
}
我想知道如何从数据库而不是inMemory中加载客户端详细信息。
任何回应都是有意义的