Add customize client metadata example in dynamic client registration how-to

Closes gh-1044
This commit is contained in:
Dmitriy Dubson
2023-11-09 11:06:43 -05:00
committed by Joe Grandja
parent 7f1cde0117
commit ef6b1aceca
5 changed files with 160 additions and 7 deletions

View File

@@ -56,7 +56,7 @@ public class DynamicClientRegistrationTests {
private String port;
@Test
public void dynamicallyRegisterClient() throws Exception {
public void dynamicallyRegisterClientWithCustomMetadata() throws Exception {
MockHttpServletResponse tokenResponse = this.mvc.perform(post("/oauth2/token")
.with(httpBasic("registrar-client", "secret"))
.param(OAuth2ParameterNames.GRANT_TYPE, AuthorizationGrantType.CLIENT_CREDENTIALS.getValue())