The aim of the One-Click Registration component is to provide a complete data model, and a plugin-ready module allowing you to easily attach a third-party authenticator to an Appway solution.
For this purpose, the component provides a set of Data Classes and a base Process capable of launching the third-party authenticator integration process.
After the third-party login has been successfully performed, the component stores the identity and access information inside the Process Instance as an attribute. By doing so, it is always possible to verify the identity of the real user owning the Instance.
As mentioned before, the core component, shipped into the OneClickRegistration Package, provides a default data model to store information about the third-party login and identity information.
- OCAccessToken: contains all the information about the access token received from the external authenticator.
- OCUserObject: contains all the details about the identity of the user (e.g. id, first name, last name, e-mail).
- OCRegistrationInfo: contains an OCAccessToken, an OCUserObject and a flag indicating if the external authentication was successfully executed or not.
The One-Click Registration component provides a base Process used as an intermediary between the solution and the real third-party integration:

The Sub-Process executed is identified by the $externalServiceProcessId variable: this Sub-Process can inherit all the required variables from the main Process. The variable definitions are as follows:

The targetInstanceId variable is used to indicate the Sub-Process in which Process Instance the registrationInfo Object must be stored as an attribute.
All the Business Objects in this Package are Visible.
No Business Object in this Package is Replaceable.