Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| radius:login_otp [2024/02/13 15:12] – system | radius:login_otp [2024/02/13 16:04] (current) – [Activating the system for sending OTPs] system | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ====== OTP ====== | ====== OTP ====== | ||
| ===== Background ===== | ===== Background ===== | ||
| - | * A One Time Password or OTP is a common method | + | * A One Time Password or OTP is a common method |
| - | * A user will typically provide | + | * A user usually enters |
| - | * The system | + | * The system then sends a code via SMS to the cell phone number or via e-mail |
| - | * This code will be used by the user to validate itself | + | * This code is used by the user to verify themselves |
| - | * As for February 2023 RADIUSdesk | + | * From February 2023, RADIUSdesk |
| * We support the following ways to send the OTP: | * We support the following ways to send the OTP: | ||
| * SMS | * SMS | ||
| * We support OTP with: | * We support OTP with: | ||
| - | * Permanent | + | * Permanent |
| * Click-To-Connet | * Click-To-Connet | ||
| - | * The rest of this page will discuss | + | * The rest of this page deals with the configuration and technical |
| - | ===== Enable System To Send OTPs ===== | + | ===== Activating the system for sending |
| - | * In order for RADIUSdesk to send an OTP you have to configure the system | + | * For RADIUSdesk |
| - | * RADIUSdesk | + | * RADIUSdesk |
| - | * See the following screenshot | + | * The following screenshot |
| <panel type=" | <panel type=" | ||
| {{: | {{: | ||
| </ | </ | ||
| - | * We support Sendgrid and normal SMTP as a transport for the email. | + | * We support Sendgrid and normal SMTP as a means of transport for the email. |
| - | * After you specified | + | * Once you have defined |
| - | * After you saved the configuration you can test it by clicking the **Test Email Settings** button. | + | * Once you have saved the configuration, you can test it by clicking |
| - | * You can also view the history of all the emails that the system sent out using this particular configuration by clicking the **Show Sent History** button. | + | * You can also view the history of all emails that the system |
| - | * See the following screenshot | + | * In the following screenshot |
| <panel type=" | <panel type=" | ||
| Line 37: | Line 37: | ||
| </ | </ | ||
| - | * Most SMS providers | + | * Most SMS providers |
| - | * RADIUSdesk allows you to specify two SMS Providers. Both can be active | + | * RADIUSdesk allows you to specify two SMS providers. Both can be active, but the system will only use the first active one it finds. |
| - | * As with the email settings you are also able to test the SMS Settings | + | * As with the email settings, you can also test the SMS settings |
| - | * You can also view the history of all the SMSs that the system sent out using that particular configuration by clicking the **Show Sent History** button. | + | * You can also view the history of all SMS that the system |
| - | <WRAP center round tip 100%> | + | <alert type=" |
| - | * These settings can also be specified | + | * These settings can also be set per cloud. |
| * Go to **Other** -> **Clouds**. | * Go to **Other** -> **Clouds**. | ||
| - | * Simply select the cloud for which you want to add more specific settings and edit it. | + | * Simply select the cloud for which you want to add more specific settings and edit them. |
| - | * These settings will take preference. | + | * These settings will then take precedence. |
| - | </WRAP> | + | </alert> |
| - | ===== OTP For User Registration | + | ===== OTP for user registration |
| <panel type=" | <panel type=" | ||
| {{: | {{: | ||
| </ | </ | ||
| - | * The above screenshot should be mostly | + | * The screenshot |
| - | * There is however | + | * However, there is one important point that should be mentioned |
| - | * We sit with a bit of a chicken and egg situation | + | * We are in a bit of a chicken and egg situation |
| - | * We will thus provide them temporary | + | * So we will provide them with temporary |
| * This is what the **Temp login user** is for. | * This is what the **Temp login user** is for. | ||
| - | * You are advised to create a dedicated | + | * We recommend that you create a separate |
| * The profile should be | * The profile should be | ||
| * Time limited. e.g. Session-Timeout should be 360 seconds (5minutes) | * Time limited. e.g. Session-Timeout should be 360 seconds (5minutes) | ||
| * The bandwidth should be limited. | * The bandwidth should be limited. | ||
| - | * This will allow for the user that registers | + | * So the user who registers |
| - | * The email with the OTP will also contain | + | * The email with the OTP also contains |
| - | * This makes is easy if the WebView with the Captive Portal | + | * This makes it easy when the WebView with the Captive Portal |
| ===== OTP For Click To Connect ===== | ===== OTP For Click To Connect ===== | ||
| Line 71: | Line 71: | ||
| </ | </ | ||
| - | * With OTP for Click To Connect there are one of two options. | + | * With OTP for Click To Connect, there is one of two options. |
| - | * If you select | + | * If you choose |
| - | * If you select | + | * If you choose the SMS option (the user' |
| - | * We also again added a link in the email for the user to conveniently confirm the OTP by clicking on the link. | + | * We have also included |
| ===== Some Technical Items ===== | ===== Some Technical Items ===== | ||
| ==== Expiry of the OTP ==== | ==== Expiry of the OTP ==== | ||
| * The current expiry time for an OTP is two minutes. | * The current expiry time for an OTP is two minutes. | ||
| - | * This can be adjusted by editing **/ | + | * This can be adjusted by editing |
| - | * Look for this line and adjust | + | * Search |
| <code php> | <code php> | ||
| protected $valid_minutes = 2; //The time that an OTP will be valid (in minutes) | protected $valid_minutes = 2; //The time that an OTP will be valid (in minutes) | ||
| Line 87: | Line 87: | ||
| ==== Disconnecting Temp Connection ==== | ==== Disconnecting Temp Connection ==== | ||
| - | * The URL link in the email will cause a redirect | + | * The URL link in the email leads to a redirection |
| - | * For this to happen the user should | + | * For this to happen, the user must be connected to the captive portal |
| <code php> | <code php> | ||
| Line 107: | Line 107: | ||
| </ | </ | ||
| - | <WRAP center round important 100%> | + | |
| + | <alert type=" | ||
| We are still looking for a similar way to disconnect users on a Mikrotik based Hotspot. | We are still looking for a similar way to disconnect users on a Mikrotik based Hotspot. | ||
| - | </WRAP> | + | </alert> |