Implementing the Registration Solution involves working with Janrain representatives. This task adds Registration features and GUI to an existing website.
Main high-level process steps:
1. Unzip the Standard Registration Flow deliverable. Create a folder in your localhost public folder, or root of your test environment called flow_demo. Add the unzipped files here.
2. Using a browser, navigation to this location, and select the index.html file.
3. Click on the Sign-in/Sign-up link to launch Registration.
This is the standard registration functionality. Next, it will be added to a website.
Please note: The janrain.capture.ui.start() function should always be invoked only after all event handlers have been specified.
In the script delivered by your Janrain representative, the URL you want to load the JS from is:
https://rpxnow.com/load/RPNAME or https://rpxnow.com/load/RPNAME
Note: If you are not using social sign as an option for Registration, change the /load/NAME to /load-default.
Warning: The highlighted link above is a preliminary link of setting for your widget that are initially hosted at Janrain. Once your installation is finalized, these settings will be delivered to you, and placed at this point in the script. Do not deploy with this link. The server is not configured for hight amounts of traffic and will break.
Once you have added these elements to your website, use your browser to navigate to localhost:8888/flow_demo/[sitename].html. Click the link that has the capture_model_open class designation. The UI will launch.
alert("You are logged in");
An example using the event system in code:
Save the file, and in your browser, navigate to localhost:8888/flow_demo/your_site_name.html .
Now, when you click on the link and sign in, the janrain.events.onCaptureLoginSuccess event fires, and the alert displays. See Figure 2.
Once you have added these elements to your website, use your browser to navigate to localhost:8888/flow_demo/[sitename].html. Click the link that has the capture_model_open class designation. The UI should launch when you finish the registration or sign-in process.
An example using Google Chrome:
The token passed by Janrain to authenticate the user is displayed in the janrainCaptureToken Key field. This token is used to identify the user’s session in Registration API calls. The user is signed in to your website.
Once the UI has been QA’d, Janrain will assist with final placement of the code on the production website.