Contents |
CoovaAAA Captive Portal Resources
CoovaChilli Web Services
- https://coova.org/app/uam/chilli
- A general purpose captive portal providing a simple Javascript/JSON login and status page. Account and access code forms are provided with a default access code realm of code - which can be changed by adding a code=otherrealm query string parameter. Similarly, a form for OpenID logins (assuming you have openid enabled in CoovaChilli) can be added with the query string parameter openid=1. This captive portal is made up of 3 main parts: Javascript, CSS code, and the form HTML. The URL can be used as mentioned combining the three. Or, each part of the application can be used separately using query parameters part=js, part=css, or part=html respectively. See below for how to assemble the parts in any HTML page.
- https://coova.org/app/uam/auth
- A simple SSL protected login URL suitable for WISPr and the uamService option in the CoovaChilli JSON interface.
Basic Configuration
Configuration settings for CoovaChilli:
- uamserver
- https://coova.org/app/uam/chilli
- wisprlogin
- https://coova.org/app/uam/auth
- uamallowed
- coova.org
- uamsecret
- <unset or emty string>
- radiussecret
- <from your CoovaAAA account>
If allowing OpenID authentication, adjust the above with:
- uamserver
- https://coova.org/app/uam/chilli?openid=1
- openid
- (this flag option has no argument)
The default form with the OpenID option is shown above. For more information about configuration options, see the chilli.conf(5) man page.
Here is a sample of the /etc/chilli/config (or maybe /usr/local/etc/chilli/config) configuration file:
HS_UAMSERVER="coova.org" HS_UAMFORMAT="https://\$HS_UAMSERVER/app/uam/chilli" HS_UAMSERVICE="https://coova.org/app/uam/auth" HS_RADCONF="off" HS_UAMSECRET=
Using Any Page
You are also able to use the same hotspot login box above in your own page! All it takes is a little HTML - no programming required. Here is example:
'Chilli Config'
- uamserver
- http://www.example.com/my-page.html?openid=1
- openid
- (this flag option has no argument)
In my-page.html
<html> <head> <style> ... (style the chilli login boxes here) </style> </head> <body> .... <script id='chillijs' src='https://coova.org/js/coova-chilli.js'></script> .... </head>
The above code will use the form hosted by coova.org. You are also able to use the javascript and login form embedded with coova-chilli, as described in this article. A my-page.html example using this login form:
<script id='chillijs' src='http://coova.org/js/chilli.js'></script>
![[Main Page]](/wiki/skins/common/images/coova.gif)
