Alfresco Index of Web Scripts Family '/Authentication'
Alfresco Community v3.2.0 (2039)
4 Web Scripts

Back to Web Scripts Home

Up to family /

Login
GET /alfresco/service/api/login?u={username}&pw={password?}
---
Login and establish a ticket.
Input
u
cleartext username (must be URL encoded)
pw
cleartext password (must be URL encoded)

Returns the new authentication ticket.
---
Authentication:none
Transaction:required
Format Style:any
Default Format:xml
Lifecycle:public_api
Id:org/alfresco/repository/login.get
Descriptor:classpath:alfresco/templates/webscripts/org/alfresco/repository/login.get.desc.xml

Login (POST)
POST /alfresco/service/api/login
---
Login and establish a ticket.
Input
JSON Data Object.
username
cleartext username
password
cleartext password

Returns the new authentication ticket.
---
Authentication:none
Transaction:required
Format Style:any
Default Format:json
Lifecycle:public_api
Id:org/alfresco/repository/login.post
Descriptor:classpath:alfresco/templates/webscripts/org/alfresco/repository/login.post.desc.xml

Logout
DELETE /alfresco/service/api/login/ticket/{ticket}
---
Logout, Delete Login Ticket.
After the user has logged out the ticket is no longer valid and subsequent attempts to use it will fail.
---
Authentication:user
Transaction:required
Format Style:any
Default Format:xml
Lifecycle:public_api
Id:org/alfresco/repository/loginticket.delete
Descriptor:classpath:alfresco/templates/webscripts/org/alfresco/repository/loginticket.delete.desc.xml

Validate Login Ticket
GET /alfresco/service/api/login/ticket/{ticket}
---
Validates the specified ticket is still valid.
The ticket may be invalid, or expired, or the user may have been locked out.
For security reasons this script will not validate the ticket of another user.
  • If the ticket is valid retuns, STATUS_SUCCESS (200)
  • If the ticket is not valid return, STATUS_NOT_FOUND (404)
  • If the ticket does not belong to the current user, STATUS_NOT_FOUND (404)
---
Authentication:user
Transaction:required
Format Style:any
Default Format:xml
Lifecycle:public_api
Id:org/alfresco/repository/loginticket.get
Descriptor:classpath:alfresco/templates/webscripts/org/alfresco/repository/loginticket.get.desc.xml