Flow versions
The content on this page deals with a legacy feature of the Akamai Identity Cloud (in this case, the JavaScript SDK). If you are currently an Identity Cloud customer and are using the JavaScript SDK, that SDK is still supported. However, if you’re new to the Identity Cloud the JavaScript SDK is no longer available. Instead, you should use Hosted Login for your login and registration needs.
Note that the section Checking a Flow Version is valid regardless of whether you're using Hosted Login or the JavaScript SDK.
By default, your widget is set to show the most recently-published version of the flow from Akamai. However, with each publish, your flow is given a new version number, giving you the ability to use a specific flow version in your implementation and manually change the version, rather than having it update when a new publish happens.
For some, using the default HEAD setting works just fine. This way, any updates to labels, requirements, or functionality made by Akamai will happen automatically once Akamai publishes those changes on the production server. On the other hand, some prefer to apply any flow updates to their own site at a very specific time. For example, to coordinate with a larger set of website revisions, or at the launch of a new product or service.
Set a flow version
The JavaScript setting that dictates the flow version for your Registration widget is called janrain.settings.capture.flowVersion. In the .zip file given to you by Akamai, you can find the flow version setting in the janrain-init.js file.
Check a flow version
If you want to see what the setting value for your janrain.settings.capture.flowVersion is, you can (while looking at a page hosting your widget) open your browser’s development console, type janrain.settings.capture.flowVersion, and press Enter. You should then see the value for that setting.
If the setting is set to HEAD, you were not given a precise flow version. However, there is a way to grab the current flow version number.
Again, in your development console in your browser, you can run the following script:
janrain.events.onCaptureRenderComplete.addHandler(function(result){
if(window.console && window.console.log){
if(result.flow != ""&& typeofresult.flow != "undefined"){
if(result.flow.flow != ""&& typeofresult.flow.flow != "undefined"){
console.log("Flow Name: "+ result.flow.flow);
}
if(result.flow.version != ""&& typeofresult.flow.version != "undefined"){
console.log("Flow Version: "+ result.flow.version);
}
}
}
});
You can also use the Configuration API to find all the flow versions available for a specific flow.
Updated over 2 years ago