The Login Widget provides user interface functionality to authenticate account owners or apstrata users registered under an apstrata account. Once the widget is placed in a web application page, it displays a form where a user can enter his credentials to login to the web application.
The "type" attribute of the widget specifies whether the widget is used to authenticate account owners or apstrata users.
Getting the code for the Apstrata SDK
ApstrataSDK code is available as open source from GitHub at https://github.com/apstrata/SDKs/tree/master/ApstrataSDK.
ApstrataSDK depends on the dojo 1.6 framework, you can download from here: http://download.dojotoolkit.org/release-1.6.1/dojo-release-1.6.1-src.zip
Installing the Apstrata SDK
- Unpack the dojo zip file into your web application
- Copy the ApstrataSDK into your web application
Define where the ApstrataSDK is located by including the following code in your main web application page
Configuring the Apstrata Connection Parameters
Embedding the widget in your web application
Make sure to reference the dojo and apstrata core scripts and css files
Include the apstrata configuration file and the registration widget file
Instantiate the registration widget and place it in your web application page
Please refer to the file "ApstrataSDK/apstrata\ui/widgets/tests/test-Login.html" for a complete example on how to embed the widget