Interface AuthenticationManagementResource
public interface AuthenticationManagementResource
- Author:
- Marko Strukelj
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExecution
(String flowAlias, Map<String, Object> data) jakarta.ws.rs.core.Response
void
addExecutionFlow
(String flowAlias, Map<String, Object> data) jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
void
deleteFlow
(String id) getAuthenticatorConfigDescription
(String providerId) getExecution
(String executionId) getExecutions
(String flowAlias) getFlows()
getRequiredAction
(String alias) getRequiredActionConfig
(String alias) Returns configuration of the specified required actionReturns configuration description of the specified required actionvoid
lowerPriority
(String execution) void
jakarta.ws.rs.core.Response
newExecutionConfig
(String executionId, AuthenticatorConfigRepresentation config) void
raisePriority
(String execution) void
void
void
void
removeExecution
(String execution) void
removeRequiredAction
(String alias) void
removeRequiredActionConfig
(String alias) Delete configuration of the specified required actionvoid
void
updateExecutions
(String flowAlias, AuthenticationExecutionInfoRepresentation rep) void
updateFlow
(String id, AuthenticationFlowRepresentation flow) void
void
Update configuration of the required action
-
Method Details
-
getFormProviders
-
getAuthenticatorProviders
-
getClientAuthenticatorProviders
-
getFormActionProviders
-
getFlows
@Path("/flows") @GET @Produces("application/json") List<AuthenticationFlowRepresentation> getFlows() -
createFlow
@Path("/flows") @POST @Consumes("application/json") jakarta.ws.rs.core.Response createFlow(AuthenticationFlowRepresentation model) -
getFlow
@Path("/flows/{id}") @GET @Produces("application/json") AuthenticationFlowRepresentation getFlow(@PathParam("id") String id) -
deleteFlow
-
copy
-
updateFlow
@Path("/flows/{id}") @PUT @Consumes("application/json") void updateFlow(@PathParam("id") String id, AuthenticationFlowRepresentation flow) -
addExecutionFlow
-
addExecution
-
getExecutions
@Path("/flows/{flowAlias}/executions") @GET @Produces("application/json") List<AuthenticationExecutionInfoRepresentation> getExecutions(@PathParam("flowAlias") String flowAlias) -
updateExecutions
@Path("/flows/{flowAlias}/executions") @PUT @Consumes("application/json") void updateExecutions(@PathParam("flowAlias") String flowAlias, AuthenticationExecutionInfoRepresentation rep) -
addExecution
@Path("/executions") @POST @Consumes("application/json") jakarta.ws.rs.core.Response addExecution(AuthenticationExecutionRepresentation model) -
getExecution
@Path("/executions/{executionId}") @GET @Produces("application/json") AuthenticationExecutionRepresentation getExecution(@PathParam("executionId") String executionId) -
raisePriority
@Path("/executions/{executionId}/raise-priority") @POST void raisePriority(@PathParam("executionId") String execution) -
lowerPriority
@Path("/executions/{executionId}/lower-priority") @POST void lowerPriority(@PathParam("executionId") String execution) -
removeExecution
@Path("/executions/{executionId}") @DELETE void removeExecution(@PathParam("executionId") String execution) -
newExecutionConfig
@Path("/executions/{executionId}/config") @POST @Consumes("application/json") jakarta.ws.rs.core.Response newExecutionConfig(@PathParam("executionId") String executionId, AuthenticatorConfigRepresentation config) -
getUnregisteredRequiredActions
@Path("unregistered-required-actions") @GET @Produces("application/json") List<RequiredActionProviderSimpleRepresentation> getUnregisteredRequiredActions() -
registerRequiredAction
@Path("register-required-action") @POST @Consumes("application/json") void registerRequiredAction(RequiredActionProviderSimpleRepresentation action) -
getRequiredActions
@Path("required-actions") @GET @Produces("application/json") List<RequiredActionProviderRepresentation> getRequiredActions() -
getRequiredAction
@Path("required-actions/{alias}") @GET @Produces("application/json") RequiredActionProviderRepresentation getRequiredAction(@PathParam("alias") String alias) -
updateRequiredAction
@Path("required-actions/{alias}") @PUT @Consumes("application/json") void updateRequiredAction(@PathParam("alias") String alias, RequiredActionProviderRepresentation rep) -
removeRequiredAction
@Path("required-actions/{alias}") @DELETE void removeRequiredAction(@PathParam("alias") String alias) -
raiseRequiredActionPriority
@Path("required-actions/{alias}/raise-priority") @POST void raiseRequiredActionPriority(@PathParam("alias") String alias) -
lowerRequiredActionPriority
@Path("required-actions/{alias}/lower-priority") @POST void lowerRequiredActionPriority(@PathParam("alias") String alias) -
getRequiredActionConfigDescription
@Path("required-actions/{alias}/config-description") @GET @Produces("application/json") RequiredActionConfigInfoRepresentation getRequiredActionConfigDescription(@PathParam("alias") String alias) Returns configuration description of the specified required action- Parameters:
alias
- Alias of the required action, which configuration description will be returned- Returns:
- Configuration description of the required action
- Throws:
jakarta.ws.rs.NotFoundException
- if the required action of specified alias is not found- Since:
- Keycloak server 25
-
getRequiredActionConfig
@Path("required-actions/{alias}/config") @GET @Produces("application/json") RequiredActionConfigRepresentation getRequiredActionConfig(@PathParam("alias") String alias) Returns configuration of the specified required action- Parameters:
alias
- Alias of the required action, which configuration will be returned- Returns:
- Configuration of the required action
- Throws:
jakarta.ws.rs.BadRequestException
- if required action not configurablejakarta.ws.rs.NotFoundException
- if the required action configuration of specified alias is not found- Since:
- Keycloak server 25
-
removeRequiredActionConfig
@Path("required-actions/{alias}/config") @DELETE void removeRequiredActionConfig(@PathParam("alias") String alias) Delete configuration of the specified required action- Parameters:
alias
- Alias of the required action, which will be removed- Throws:
jakarta.ws.rs.BadRequestException
- if required action not configurablejakarta.ws.rs.NotFoundException
- if the required action configuration of specified alias is not found- Since:
- Keycloak server 25
-
updateRequiredActionConfig
@Path("required-actions/{alias}/config") @PUT @Consumes("application/json") void updateRequiredActionConfig(@PathParam("alias") String alias, RequiredActionConfigRepresentation rep) Update configuration of the required action- Parameters:
alias
- Alias of the required action, which will be updatedrep
- JSON representation of the required action- Throws:
jakarta.ws.rs.BadRequestException
- if required action not configurable or given configuration is incorrectjakarta.ws.rs.NotFoundException
- if the required action configuration of specified alias is not found- Since:
- Keycloak server 25
-
getAuthenticatorConfigDescription
@Path("config-description/{providerId}") @GET @Produces("application/json") AuthenticatorConfigInfoRepresentation getAuthenticatorConfigDescription(@PathParam("providerId") String providerId) -
getPerClientConfigDescription
@Path("per-client-config-description") @GET @Produces("application/json") Map<String,List<ConfigPropertyRepresentation>> getPerClientConfigDescription() -
getAuthenticatorConfig
@Path("config/{id}") @GET @Produces("application/json") AuthenticatorConfigRepresentation getAuthenticatorConfig(@PathParam("id") String id) -
removeAuthenticatorConfig
-
updateAuthenticatorConfig
@Path("config/{id}") @PUT @Consumes("application/json") void updateAuthenticatorConfig(@PathParam("id") String id, AuthenticatorConfigRepresentation config)
-