wiki:OpenIDServer:API

Thiblo Open ID server API specs

Thiblo's Open ID server? has an API for background usage of its authentication features.

Currently, you can do the following with the API:

  • Check user account for existence;
  • Authenticate user;
  • Create new user account.

Usage

To check if a user exists send a POST request with the username parameter to the /api/check/ URL.

To authenticate user send a POST request with username and password to the /api/auth/ URL.

To create new user send a POST request with username, password and an email to the /api/create URL.

Return values

The API always responds with a JSON data, even when exceptions occur. This data has one required parameter result that can be success, failure or the error and one optional reason parameter.

For example, if you try to send a GET request, you will got the following response:

{"reason": "Wrong HTTP method", "result": "error"}

For more information read the code because API is not stable yet.