reta commented on code in PR #3318:
URL: https://github.com/apache/cxf/pull/3318#discussion_r3610904759


##########
rt/rs/security/oauth-parent/oauth2/src/test/java/org/apache/cxf/rs/security/oauth2/services/DynamicRegistrationServiceTest.java:
##########
@@ -80,6 +82,82 @@ public void 
testAcceptsRegisteredScopesWhenAllowlistNotConfigured() {
         assertEquals(Collections.singletonList("openid"), 
client.getRegisteredScopes());
     }
 
+    @Test
+    public void testAcceptsAllowedRedirectUrlsWebApp() {
+        TestDynamicRegistrationService service = new 
TestDynamicRegistrationService();
+
+        ClientRegistration request = new ClientRegistration();
+        request.setScope("read write");
+        request.setRedirectUris(List.of("https://localhost";, 
"http://localhost";));
+
+        Client client = createClient();
+        service.applyClientRegistration(request, client);
+
+        assertEquals(Arrays.asList("https://localhost";, "http://localhost";), 
client.getRedirectUris());

Review Comment:
   This is only for implicit grants as per spec, please check it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to