This is an old revision of the document!
Dynamic Keys
Introduction
One of the most powerful features of the Login Pages is the Dynamic Keys feature.
Unfortunately it is also one of the most misunderstood.
This dedicated Wiki Page aims to make the aspects around the Dynamic Keys more clear.
Login Page URL
Coova Chilli
When connecting to a Coova Chill based Captive Portal you will be redirected to the UAM
URL.
Coova Chilli does this automatically and also formulate the query string that is automatically appended to the UAM
URL.
The components and values of the query string is mostly determined by the configuration settings of Coova Chilli.
Here is a sample of the login page with its query string.
-
With the Coova Chilli configuration we for instance have
Some settings must be unique to the Coova Chilli instance e.g. nasid.
Other settings can be more generic and can be common between a couple of Coova Chilli instances e.g. ssid.
If our Login Page have not yet been configured with any Dynamic Keys you will get the following screen.
Mikrotik
<center>If you are not redirected in a few seconds, click 'continue' below<br>
<form name="redirect" action="https://cloud.radiusdesk.com/cake3/rd_cake/dynamic-details/mikrotik-browser-detect" method="post">
<input type="hidden" name="loginlink" value="$(link-login-only)">
<input type="hidden" name="nasid" value="$(identity)">
<input type="hidden" name="link_status" value="$(link-status)">
<input type="hidden" name="link_login_only" value="$(link-login-only)">
<input type="hidden" name="link_logout" value="$(link-logout)">
<input type="hidden" name="mac" value="$(mac-esc)">
<input type="hidden" name="type" value="mikrotik">
<input type="hidden" name="ssid" value="our_internet_cafe">
<input type="submit" value="continue">
</form>
<script language="JavaScript">
<!--
document.redirect.submit();
//-->
</script>
Here the Mikrotik will POST some additional data to the CakePHP controller which the controller can then utilize.
With the Mikrotik you are more in control in terms of that items will be contained in the POST.
You can even provide your own set of items with the values you choose.
Like the Coova Chilli pages, the Mikrotik will display a list of available items if the Dynamic Keys have not yet been configured.