Dynamic Keys

  • One of the most powerful features of login pages are the dynamic keys.
  • Unfortunately, it is also one of the most misunderstood.
  • This special wiki page aims to clarify the aspects surrounding dynamic keys.

  • Mikrotik Hotspots work more or less in a similar way.
  • If you configure the Mikrotik to use a central login page the replacement login.html page will look something like this
<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 use.
  • With Mikrotik, you have more control over the elements that are included in the POST.
  • You can even specify your own elements with the values you want.
  • Like the Coova Chili pages, the Mikrotik also displays a list of available elements if the dynamic keys have not yet been configured.
  • The dynamic keys are used by RADIUSdesk to determine which login page should be served.
  • You can use any of the listed elements and add it as a dynamic key to a login page
  • Login pages can also contain several dynamic keys.
  • For example, if you have a very specific login page that should only be displayed by a specific captive portal, you can use the nasid.
  • If, on the other hand, you have a hotel chain and want to use the same page on ALL captive portals of these hotels, you can use a more general element, e.g. ssid.
  • You can also combine them without any problems.

  • You may have noticed that the example URL for the login page we have provided for Coova Chili is different from the typical URL we provide as the UAM URL.
  • What then happens behind the scenes is that the CakePHP controller redirects to the final login page.
  • This location is determined by the value of the page's theme.
  • The controller also appends the language component to the query string of the URL, e.g. i18n=fr_FR, so that the page is displayed in French.
  • radius/login_dynamic_keys.txt
  • Last modified: 2024/02/13 14:28
  • by system