Package step.core.access.services
Class AccessServices
- java.lang.Object
-
- step.framework.server.AbstractServices<step.core.access.User>
-
- step.core.deployment.AbstractStepServices
-
- step.core.access.services.AccessServices
-
@Singleton @Path("/access") public class AccessServices extends step.core.deployment.AbstractStepServices
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AccessServices.ApiTokenRequest
-
Constructor Summary
Constructors Constructor Description AccessServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.Response
authenticateUser(jakarta.servlet.http.HttpServletRequest req, step.core.auth.Credentials credentials)
ApiToken
createServiceAccountToken(AccessServices.ApiTokenRequest apiTokenRequest)
java.util.List<ApiToken>
getServiceAccountTokens()
void
init()
boolean
isDemo()
void
logout(jakarta.servlet.http.HttpServletRequest req)
void
revoke(java.lang.String id)
-
Methods inherited from class step.core.deployment.AbstractStepServices
checkRightsOnBehalfOf, getAuthorizationManager, getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
-
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws java.lang.Exception
- Overrides:
init
in classstep.core.deployment.AbstractStepServices
- Throws:
java.lang.Exception
-
authenticateUser
@POST @Path("/login") @Produces("application/json") @Consumes("application/json") public jakarta.ws.rs.core.Response authenticateUser(@Context jakarta.servlet.http.HttpServletRequest req, step.core.auth.Credentials credentials)
-
createServiceAccountToken
@POST @Path("/service-account/token") @Consumes("application/json") @Produces("application/json") public ApiToken createServiceAccountToken(AccessServices.ApiTokenRequest apiTokenRequest)
-
revoke
@DELETE @Path("/service-account/token/{id}") @Produces("application/json") public void revoke(@PathParam("id") java.lang.String id)
-
getServiceAccountTokens
@GET @Path("/service-account/tokens") @Produces("application/json") public java.util.List<ApiToken> getServiceAccountTokens()
-
logout
@POST @Path("/logout") public void logout(@Context jakarta.servlet.http.HttpServletRequest req)
-
isDemo
public boolean isDemo()
-
-