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
-
-
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(step.core.auth.Credentials credentials)
String
getServiceAccountToken(long days)
void
init()
boolean
isDemo()
void
logout(jakarta.servlet.http.HttpServletRequest req)
-
Methods inherited from class step.core.deployment.AbstractStepServices
getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
-
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws Exception
- Overrides:
init
in classstep.core.deployment.AbstractStepServices
- Throws:
Exception
-
authenticateUser
@POST @Path("/login") @Produces("application/json") @Consumes("application/json") public jakarta.ws.rs.core.Response authenticateUser(step.core.auth.Credentials credentials)
-
getServiceAccountToken
@GET @Path("/service-account/token") @Produces("text/plain") public String getServiceAccountToken(@QueryParam("lifetime") long days)
-
logout
@POST @Path("/logout") public void logout(@Context jakarta.servlet.http.HttpServletRequest req)
-
isDemo
public boolean isDemo()
-
-