Add a META-INF/beans.xml file to enable support for JAX-RS (#4074)

Closes #4073
This commit is contained in:
Pedro Igor 2022-12-20 04:23:44 -08:00 committed by GitHub
parent 23a6315726
commit 972a5de8c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

4
.gitignore vendored
View file

@ -39,3 +39,7 @@ server
dist dist
dist-ssr dist-ssr
*.local *.local
# Intellij
.idea
*.iml

View file

@ -27,9 +27,6 @@ import org.keycloak.models.utils.DefaultAuthenticationFlows;
import org.keycloak.services.resources.admin.permissions.AdminPermissionEvaluator; import org.keycloak.services.resources.admin.permissions.AdminPermissionEvaluator;
@Path("/")
@Consumes({"application/json"})
@Produces({"application/json"})
public class AuthenticationManagementResource extends RoleMappingResource { public class AuthenticationManagementResource extends RoleMappingResource {
private final KeycloakSession session; private final KeycloakSession session;
@ -45,6 +42,8 @@ public class AuthenticationManagementResource extends RoleMappingResource {
@GET @GET
@Path("/flows") @Path("/flows")
@Consumes({"application/json"})
@Produces({"application/json"})
@Operation( @Operation(
summary = "List all authentication flows for this realm", summary = "List all authentication flows for this realm",
description = "This endpoint returns all the authentication flows and lists if there they are used." description = "This endpoint returns all the authentication flows and lists if there they are used."
@ -72,6 +71,8 @@ public class AuthenticationManagementResource extends RoleMappingResource {
@GET @GET
@Path("/{type}/{id}") @Path("/{type}/{id}")
@Consumes({"application/json"})
@Produces({"application/json"})
@Operation( @Operation(
summary = "List all clients or identity providers that this flow is used by", summary = "List all clients or identity providers that this flow is used by",
description = "List all the clients or identity providers this flow is used by as a paginated list" description = "List all the clients or identity providers this flow is used by as a paginated list"

View file

@ -30,7 +30,6 @@ import org.keycloak.services.resources.admin.permissions.AdminPermissionEvaluato
import org.keycloak.services.resources.admin.permissions.UserPermissionEvaluator; import org.keycloak.services.resources.admin.permissions.UserPermissionEvaluator;
import org.keycloak.utils.SearchQueryUtils; import org.keycloak.utils.SearchQueryUtils;
@Path("/")
public class BruteForceUsersResource { public class BruteForceUsersResource {
private static final Logger logger = Logger.getLogger(BruteForceUsersResource.class); private static final Logger logger = Logger.getLogger(BruteForceUsersResource.class);
private static final String SEARCH_ID_PARAMETER = "id:"; private static final String SEARCH_ID_PARAMETER = "id:";