Changes

Jump to: navigation, search

stoney core: Authentication Resource - REST API

9 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:
"id": 4000123,
"user": "user@example.com",
"roles": [ "Virtualization Admin", "Backup User"], "location": "https://api.selfcareexample.com/v1/people/4000123"
}
</source>
3,368
edits