User Registration

July 6, 2013

As a complement to the article on User Management, this article describes the tools that are provided by Apstrata in order to simplify user registration. Indeed, along the “SaveUser” API, Apstrata also ships with server-side scripts and a JavaScript/HTML 5 registration widget that facilitate the work of the developers (more on server-side scripting with Apstrata).

The scripts implement a registration process in three steps:

  1. Create a user in the user store and tag it as suspended. A suspended user cannot log-in to an application that delegates Identity management to Apstrata.
  2. Send a verification e-mail to the user who has registered, with a link he needs to click on in order to validate his registration
  3. Un-suspend the user once the verification is done (the user is now able to use the application) and send a confirmation email.

As for the JavaScript/HTML 5 registration widget, it can be easily dropped into an HTML (or PHP) page to display a registration form containing the mandatory users fields (login, name, password, email) as well as some other fields (job title, web site, company and phone). It is of course possible to modify the form in order to add and/or remove some fields, as it will be explained in the following paragraphs. Read more


User Management

July 5, 2013

Almost every application requires some kind of user management, where a user is required to register for an account, to join a group, or to login to the application. Apstrata makes all that easy for the developer, without having to worry about administering or managing his/her own user directory nor having to worry about writing code to handle each of the previously mentioned features.

Apstrata is a back-end as a service solution, providing the building blocks needed for you to build an application. It provides a set of cloud API services, among which is a set of services for Identity Management. In this post we will be showing code examples to show how easy it is to manage a User in the Apstrata service.

Examples are listed below on how to register a user, authenticate a user, and add/remove a user from a group. Please note that in the following examples, a JSON response is returned for each request indicating its success or failure.  NOTE: These examples use the REST API interface and assume that the REST calls are made via an Apstrata application account and are signed appropriately. User management features are also available via native iOS and Android SDKs. For more details explore our website at apstrata.com. Read more