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 almost 4 years ago
