This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user_guide:user_registration_api [2021/02/08 05:16] – [Introduction] admin | user_guide:user_registration_api [2021/02/08 10:14] (current) – [Finding the login_page_id] admin | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Introduction ===== | ===== Introduction ===== | ||
* This document is applicable to the Git version of RADIUSdesk (2021Version) | * This document is applicable to the Git version of RADIUSdesk (2021Version) | ||
- | * To interact with the API of RADIUSdesk | + | * We will explain |
- | * Each Access Provider registered on the system has a unique API key. | + | * To enable user registration on a login page, go to the Dynamic Login Pages applet. |
- | * It is recommended | + | * Select a login page and click **Edit** |
+ | * At the bottom | ||
+ | * There you can enable and fine tune it for the specified login page. | ||
+ | |||
+ | ===== API ===== | ||
+ | ==== API URL ==== | ||
+ | * We assume the FQDN of the RADIUSdesk server is **hotspot.radiusdesk.com**. Please adapt accordingly. | ||
+ | * http:// | ||
+ | |||
+ | ==== Items included in the POST ==== | ||
+ | |||
+ | * Let us take a look at the items submitted to the back-end when a user registers and then discuss important items in that list. | ||
+ | |||
+ | <code javascript> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ^ Item ^ Typical Value ^ Comment | ||
+ | | mac | 28-D2-44-20-AA-00 | ||
+ | | login_page | ||
+ | | login_page_id | ||
+ | | name | Dirk | ||
+ | | surname | ||
+ | | username | ||
+ | | password | ||
+ | | phone | 0721235555 | ||
+ | |||
+ | ==== Finding the login_page_id ==== | ||
+ | * See the following screenshot to get to the login_page_id | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | * The first hidden column contains the value of login_page_id. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== A Word On The MAC Address ==== | ||
+ | |||
+ | * The MAC Address | ||
+ | * When we use the login page to do the user registration we can extract it from the detail provided to us by CoovaChilli typically. | ||
+ | * When we create | ||
+ | * Here is some info on how to get it programmatically: | ||
+ | |||
+ | ==== Reply - Success ==== | ||
+ | |||
+ | * This is typically what a successful reply will look like | ||
+ | <code javascript> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== Reply - Failure ==== | ||
+ | * This is a typical message if someone tries to register twice from the same device | ||
+ | <code javascript> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||