Authenticates current user to the given database

PUT
api/databases/{dbid}/auth
This request is used for user authentication to the given database.
If you need to make only one request to the database, you can use Basic Authentication and simply provide user name / password in the header parameter "WWW-Authenticate".

Request:

Argument Type Description
dbid GUID  The ID of the database

Content

Name Type Options Description
Name String  User name
Password String  Password

Response:

Request:
  1. PUT api/databases/ec5a34c2-7062-4be7-ade9-c15acefcdbb8/auth
  2. Accept: text/json
  3. Accept-Encoding: deflate
  4. Content-Type: text/json
  5. Host: localhost:6496
  6. Content-Length: 46
  7. Expect: 100-continue
  8. Connection: Keep-Alive
  9.  
  10. {
  11. "Name": "admin",
  12. "Password": "admin",
  13. }
Response:
  1. Cache-Control: no-store
  2. Date: Fri, 21 Dec 2012 08:42:33 GMT
  3. Set-Cookie: sid=a8cd7cce-8c6c-4af4-9da7-1d8ac92b6117; path=/;
  4. Server: Microsoft-HTTPAPI/2.0