Учитывая, что в памяти зарегистрировано несколько клиентов ClientDetailsServiceConfigurer
как это:
clients.inMemory()..withClient("fooClientIdPassword").secret("secret")
.authorizedGrantTypes("password", "client_credentials", "refresh_token").scopes("foo", "read", "write","notifications", "gist")
.accessTokenValiditySeconds(3600)
// 1 hour
.refreshTokenValiditySeconds(2592000)
// 30 days
.and().withClient("barClientIdPassword").secret("secret")
.authorizedGrantTypes("password", "client_credentials", "refresh_token").scopes("bar", "read", "write","notifications", "gist")
.accessTokenValiditySeconds(3600)
// 1 hour
.refreshTokenValiditySeconds(2592000) // 30 days
как получить идентификатор клиента, используемый в запросе аутентификации в моем реализованном UserDetailsService в дополнение к предоставленному имени пользователя