@Test public void read() throws Exception{ testRequest( HttpMethod.GET, "/register/my-test-client_id", HttpStatusCode.OK_200, "OK"); }
public void read(RoutingContext context) { LOGGER.debug("Dynamic client registration GET endpoint"); this.getClient(context) .map(DynamicClientRegistrationResponse::fromClient) .map(response -> { response.setRegistrationAccessToken(null); response.setRegistrationClientUri(null); return response; }) .subscribe( result -> context.response() .putHeader(HttpHeaders.CACHE_CONTROL, "no-store") .putHeader(HttpHeaders.PRAGMA, "no-cache") .putHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON) .setStatusCode(HttpStatusCode.OK_200) .end(Json.encodePrettily(result)) , error -> context.fail(error) ); }
DynamicClientAccessEndpoint extends DynamicClientRegistrationEndpoint { public void read(RoutingContext context) { LOGGER.debug("Dynamic client registration GET endpoint"); this.getClient(context) .map(DynamicClientRegistrationResponse::fromClient) .map(response -> { response.setRegistrationAccessToken(null); response.setRegistrationClientUri(null); return response; }) .subscribe( result -> context.response() .putHeader(HttpHeaders.CACHE_CONTROL, "no-store") .putHeader(HttpHeaders.PRAGMA, "no-cache") .putHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON) .setStatusCode(HttpStatusCode.OK_200) .end(Json.encodePrettily(result)) , error -> context.fail(error) ); } }
DynamicClientAccessEndpoint extends DynamicClientRegistrationEndpoint { public void read(RoutingContext context) { LOGGER.debug("Dynamic client registration GET endpoint"); this.getClient(context) .map(DynamicClientRegistrationResponse::fromClient) .map(response -> { response.setRegistrationAccessToken(null); response.setRegistrationClientUri(null); return response; }) .subscribe( result -> context.response() .putHeader(HttpHeaders.CACHE_CONTROL, "no-store") .putHeader(HttpHeaders.PRAGMA, "no-cache") .putHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON) .setStatusCode(HttpStatusCode.OK_200) .end(Json.encodePrettily(result)) , error -> context.fail(error) ); } DynamicClientAccessEndpoint(DynamicClientRegistrationService dcrService, ClientSyncService clientSyncService); }
DynamicClientAccessEndpoint extends DynamicClientRegistrationEndpoint { public void read(RoutingContext context) { LOGGER.debug("Dynamic client registration GET endpoint"); this.getClient(context) .map(DynamicClientRegistrationResponse::fromClient) .map(response -> { response.setRegistrationAccessToken(null); response.setRegistrationClientUri(null); return response; }) .subscribe( result -> context.response() .putHeader(HttpHeaders.CACHE_CONTROL, "no-store") .putHeader(HttpHeaders.PRAGMA, "no-cache") .putHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON) .setStatusCode(HttpStatusCode.OK_200) .end(Json.encodePrettily(result)) , error -> context.fail(error) ); } DynamicClientAccessEndpoint(DynamicClientRegistrationService dcrService, ClientSyncService clientSyncService); void read(RoutingContext context); void patch(RoutingContext context); void update(RoutingContext context); void delete(RoutingContext context); void renewClientSecret(RoutingContext context); }
DynamicClientAccessEndpoint extends DynamicClientRegistrationEndpoint { public void read(RoutingContext context) { LOGGER.debug("Dynamic client registration GET endpoint"); this.getClient(context) .map(DynamicClientRegistrationResponse::fromClient) .map(response -> { response.setRegistrationAccessToken(null); response.setRegistrationClientUri(null); return response; }) .subscribe( result -> context.response() .putHeader(HttpHeaders.CACHE_CONTROL, "no-store") .putHeader(HttpHeaders.PRAGMA, "no-cache") .putHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON) .setStatusCode(HttpStatusCode.OK_200) .end(Json.encodePrettily(result)) , error -> context.fail(error) ); } DynamicClientAccessEndpoint(DynamicClientRegistrationService dcrService, ClientSyncService clientSyncService); void read(RoutingContext context); void patch(RoutingContext context); void update(RoutingContext context); void delete(RoutingContext context); void renewClientSecret(RoutingContext context);  }