Interface AuthenticationApi
-
- All Implemented Interfaces:
@JvmSuppressWildcards() public interface AuthenticationApi
-
-
Method Summary
Modifier and Type Method Description abstract TicketEntrycreateTicket(@Body() TicketBody ticketBodyCreate)Create ticket (login) Note: this endpoint is available in Alfresco 5.2 and newer versions. abstract UnitdeleteTicket()Delete ticket (logout) Note: this endpoint is available in Alfresco 5.2 and newer versions. abstract ValidTicketEntryvalidateTicket()Validate ticket Note: this endpoint is available in Alfresco 5.2 and newer versions. -
-
Method Detail
-
createTicket
@Headers(value = {"Content-Type: application/json"})@POST(value = "authentication/versions/1/tickets") abstract TicketEntry createTicket(@Body() TicketBody ticketBodyCreate)Create ticket (login) Note: this endpoint is available in Alfresco 5.2 and newer versions. Logs in and returns the new authentication ticket. The userId and password properties are mandatory in the request body. For example:
``JSON { \"userId\": \"jbloggs\", \"password\": \"password\" } ``To use the ticket in future requests you should pass it in the request header. For example using Javascript:``Javascript request.setRequestHeader (\"Authorization\", \"Basic \" + btoa(ticket)); ``The endpoint is owned by defaultname service owner @param ticketBodyCreate The user credential. (required)
-
deleteTicket
@Headers(value = {"Content-Type: application/json"})@DELETE(value = "authentication/versions/1/tickets/-me-") abstract Unit deleteTicket()Delete ticket (logout) Note: this endpoint is available in Alfresco 5.2 and newer versions. Deletes logged in ticket (logout). The endpoint is owned by defaultname service owner
-
validateTicket
@Headers(value = {"Content-Type: application/json"})@GET(value = "authentication/versions/1/tickets/-me-") abstract ValidTicketEntry validateTicket()Validate ticket Note: this endpoint is available in Alfresco 5.2 and newer versions. Validates the specified ticket (derived from Authorization header) is still valid. For example, you can pass the Authorization request header using Javascript:
``Javascript request.setRequestHeader (\"Authorization\", \"Basic \" + btoa(ticket)); ``The endpoint is owned by defaultname service owner
-
-
-
-