From 134fbe990359df508444673dd2ad89404c3574dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Vav=C5=99=C3=ADk?= Date: Fri, 24 Mar 2023 14:06:26 +0100 Subject: [PATCH] Disable OpenAPI security scheme check in classic OIDC client --- .../extended/restclient/OpenApiStoreSchemaIT.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/security/keycloak-oidc-client-extended/src/test/java/io/quarkus/ts/security/keycloak/oidcclient/extended/restclient/OpenApiStoreSchemaIT.java b/security/keycloak-oidc-client-extended/src/test/java/io/quarkus/ts/security/keycloak/oidcclient/extended/restclient/OpenApiStoreSchemaIT.java index 272ee995c..7637f16d7 100644 --- a/security/keycloak-oidc-client-extended/src/test/java/io/quarkus/ts/security/keycloak/oidcclient/extended/restclient/OpenApiStoreSchemaIT.java +++ b/security/keycloak-oidc-client-extended/src/test/java/io/quarkus/ts/security/keycloak/oidcclient/extended/restclient/OpenApiStoreSchemaIT.java @@ -83,13 +83,15 @@ private void assertContent(JsonObject content) { assertTrue(content.getJsonObject("paths").containsKey("/rest-pong"), "Missing expected path: /rest-pong"); // verify that path /secured/admin is only accessible by user with role 'admin' - var expectedRole = getRequiredRoleForPath(content, "/secured/admin"); - assertEquals("admin", expectedRole); + // TODO: enable when https://github.com/quarkusio/quarkus/issues/32112 is fixed + // var expectedRole = getRequiredRoleForPath(content, "/secured/admin"); + // assertEquals("admin", expectedRole); // verify that path /secured/getClaimsFromBeans is accessible by any authenticated user - expectedRole = getRequiredRoleForPath(content, "/secured/getClaimsFromBeans"); + // TODO: enable when https://github.com/quarkusio/quarkus/issues/32112 is fixed + // expectedRole = getRequiredRoleForPath(content, "/secured/getClaimsFromBeans"); // note: '**' is equivalent of @Authenticated and @RolesAllowed("**") - assertEquals("**", expectedRole); + // assertEquals("**", expectedRole); // verify 'oidc' security schema var securitySchema = content