Changes

Jump to: navigation, search

stoney core: Authentication Resource - REST API

39 bytes added, 11:43, 1 May 2014
/* Auth retrieval (GET) example */
=== Auth action ===Also visit [[stoney core: Authentication Resource Mapping (REST - LDAP)]].
To give a client the possibility of verifying username and password, a pseudo-ressource is provided, the only method implemented is the GET.= Auth action =
==== Auth retrieval (To give a client the possibility of verifying username and password, a pseudo-ressource is provided, the only method implemented is the GET) ====.
==Auth retrieval (GET) ===== Auth retrieval (GET) example =====
To verify the authentication the clients sends a HTTP <code>GET</code> request on the auth's resource URI <code>https://api.example.com/v1/auth</code>.
The service responds with a HTTP status code:
<source lang='javascript'>
{
"authenticatedAsid": "user@example.com"4000123, "rolesuser": [ "Virtualization Adminuser@example.com", "Backup User"], "location": "https://api.selfcareexample.com/v1/people/4000123"
}
</source>
[[Category: REST API]][[Category:stoney core]]
3,368
edits