diff --git a/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationIdentityProvidersResource.java b/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationIdentityProvidersResource.java index 14cd29dc80..0395d4d7bf 100644 --- a/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationIdentityProvidersResource.java +++ b/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationIdentityProvidersResource.java @@ -48,7 +48,6 @@ import org.keycloak.services.ErrorResponse; import org.keycloak.services.resources.KeycloakOpenAPI; import org.keycloak.services.resources.admin.AdminEventBuilder; -@Provider @Extension(name = KeycloakOpenAPI.Profiles.ADMIN, value = "") public class OrganizationIdentityProvidersResource { @@ -57,11 +56,6 @@ public class OrganizationIdentityProvidersResource { private final OrganizationProvider organizationProvider; private final OrganizationModel organization; - public OrganizationIdentityProvidersResource() { - // needed for registering to the JAX-RS stack - this(null, null, null); - } - public OrganizationIdentityProvidersResource(KeycloakSession session, OrganizationModel organization, AdminEventBuilder adminEvent) { this.realm = session == null ? null : session.getContext().getRealm(); this.session = session; diff --git a/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationMemberResource.java b/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationMemberResource.java index 85b4728fdc..478a78cc0c 100644 --- a/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationMemberResource.java +++ b/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationMemberResource.java @@ -33,7 +33,6 @@ import jakarta.ws.rs.QueryParam; import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; import jakarta.ws.rs.core.Response.Status; -import jakarta.ws.rs.ext.Provider; import org.eclipse.microprofile.openapi.annotations.Operation; import org.eclipse.microprofile.openapi.annotations.extensions.Extension; @@ -58,7 +57,6 @@ import org.keycloak.services.resources.KeycloakOpenAPI; import org.keycloak.services.resources.admin.AdminEventBuilder; import org.keycloak.utils.StringUtil; -@Provider @Extension(name = KeycloakOpenAPI.Profiles.ADMIN, value = "") public class OrganizationMemberResource { @@ -68,14 +66,6 @@ public class OrganizationMemberResource { private final OrganizationModel organization; private final AdminEventBuilder adminEvent; - public OrganizationMemberResource() { - this.session = null; - this.realm = null; - this.provider = null; - this.organization = null; - this.adminEvent = null; - } - public OrganizationMemberResource(KeycloakSession session, OrganizationModel organization, AdminEventBuilder adminEvent) { this.session = session; this.realm = session.getContext().getRealm(); diff --git a/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationResource.java b/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationResource.java index 7ab80abce5..2b439dc001 100644 --- a/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationResource.java +++ b/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationResource.java @@ -26,7 +26,6 @@ import jakarta.ws.rs.Produces; import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; import jakarta.ws.rs.core.Response.Status; -import jakarta.ws.rs.ext.Provider; import org.eclipse.microprofile.openapi.annotations.Operation; import org.eclipse.microprofile.openapi.annotations.extensions.Extension; import org.eclipse.microprofile.openapi.annotations.tags.Tag; @@ -46,7 +45,6 @@ import org.keycloak.services.ErrorResponse; import org.keycloak.services.resources.KeycloakOpenAPI; import org.keycloak.services.resources.admin.AdminEventBuilder; -@Provider @Extension(name = KeycloakOpenAPI.Profiles.ADMIN, value = "") public class OrganizationResource { @@ -55,11 +53,6 @@ public class OrganizationResource { private final AdminEventBuilder adminEvent; private final OrganizationModel organization; - public OrganizationResource() { - // needed for registering to the JAX-RS stack - this(null, null, null); - } - public OrganizationResource(KeycloakSession session, OrganizationModel organization, AdminEventBuilder adminEvent) { this.session = session; this.provider = session == null ? null : session.getProvider(OrganizationProvider.class); diff --git a/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationsResource.java b/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationsResource.java index faed78f67d..5f17c2e89a 100644 --- a/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationsResource.java +++ b/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationsResource.java @@ -32,7 +32,6 @@ import jakarta.ws.rs.QueryParam; import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; import jakarta.ws.rs.core.Response.Status; -import jakarta.ws.rs.ext.Provider; import org.eclipse.microprofile.openapi.annotations.Operation; import org.eclipse.microprofile.openapi.annotations.extensions.Extension; import org.eclipse.microprofile.openapi.annotations.parameters.Parameter; @@ -60,7 +59,6 @@ import org.keycloak.utils.ReservedCharValidator; import org.keycloak.utils.SearchQueryUtils; import org.keycloak.utils.StringUtil; -@Provider @Extension(name = KeycloakOpenAPI.Profiles.ADMIN, value = "") public class OrganizationsResource { @@ -71,11 +69,6 @@ public class OrganizationsResource { private static final Logger logger = Logger.getLogger(OrganizationsResource.class); - public OrganizationsResource() { - // needed for registering to the JAX-RS stack - this(null, null, null); - } - public OrganizationsResource(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) { this.session = session; this.provider = session == null ? null : session.getProvider(OrganizationProvider.class);