Authentication methods
Hotspot sign-in with TCKN, SMS, e-mail, WhatsApp, ticket, hotel system and Captive Portal/LDAP.
Auth Methods
On Config > Hotspot Settings, when you create or edit a hotspot setting, you choose the methods guests can use in the Auth Methods table. In each row the Authentication Active/Passive box turns the method on; the Secret Word Active/Passive and Admin Approve Active/Passive boxes add a secret word and admin approval to that method.
If you turn on more than one method, guests see each method as a separate tab on the sign-in page and the guest chooses one. Combined methods, whose names contain “and”, are a single tab: everything on that tab is asked. You set the order of the tabs with Authentication Method Sort in the portal screen settings.
- TCKN Authentication: The guest enters their national ID number, name, surname and date of birth. The TCKN verification type setting decides how this is checked. Guests are shown in the system by their national ID number.
- SMS Authentication: The guest enters their mobile number and signs in with the verification code sent to it. Set up SMS settings before you choose it.
- You define the text sent to guests in the SMS Template field; the #CODE# field is required in the template and is replaced by the verification code.
- To show guests in the system with mobile number, name and surname, tick Get Name and Surname information.
- With Ask for SMS permission you can also ask the guest for permission to send SMS and write the consent text in SMS Permission Text.
- Captive Portal/LDAP/AD: Users defined on the FortiGate sign in with their user name and password. Guests are shown in the system by their FortiGate user name. You can create a new Captive Portal user on the Hotspot users page. To sign in with LDAP/AD users, complete the integration in Ldap / Active Directory Verification Settings.
- SMS and TCKN Authentication: Both are required: the guest enters the mobile number and the national ID details, then types the code received by SMS.
- The rules of SMS Authentication apply to SMS settings and the SMS Template.
- You can turn off the name and surname question with Ask for name and surname in ID & SMS login (it cannot be turned off with KPS verification).
- Captive Portal and TCKN Authentication: Both are required: on the same form the guest enters the FortiGate user name and password, plus the national ID details.
- Captive Portal and SMS Authentication: Both are required: on the same form the guest enters the FortiGate user name and password, plus the mobile number, then types the code sent to the phone. Set up SMS settings before you choose it.
- TCKN and Ticket Authentication: Both are required: on the same form the guest enters the ticket number and the national ID details. You generate tickets on the Hotspot > Tickets screen; see Ticket login for details.
- SMS and Ticket Authentication: Both are required: the guest enters the ticket number and the mobile number, then types the code received by SMS. Set up SMS settings before you choose it.
- E-mail Authentication: The guest enters their e-mail address and signs in with the code sent to it; name and surname are not asked. See E-mail login.
- WhatsApp Authentication: The guest enters their phone number and signs in with the code received on WhatsApp. See WhatsApp Authentication Settings for setup.
- Hotel Management Authentication: This method works together with your existing hotel software; for setup see Hotel integration; to request the integration, create a support call through the Fortilogger Portal.
- The guest is verified with the details in the hotel records (national ID number/passport number, e-mail, room number or name); you pick which one with Hotel user verification options.
- This method has no secret word or admin approval.
- Ticket Authentication: The guest enters only the ticket number; to generate tickets see Ticket login. This method has no secret word or admin approval.
The guest must reach the internet to read the verification code, but the session is not open yet. For devices without mobile data, pre-auth access must be defined on the FortiGate. The screen shows this warning when you turn on E-mail Authentication or WhatsApp Authentication.
Check LDAP User: When you tick this option under the table, the LDAP connection settings open. Once they are complete, you can use the methods that include Captive Portal/LDAP/AD with LDAP/AD users as well; details are in Ldap / Active Directory Verification Settings.
TCKN Verification Type
When you turn on a method that includes TCKN, TC Identity Verification Settings opens. Verification Type offers two options:
- Algorithm TC Verification: Checks that the national ID number is valid.
- KPS TC Verification: Queries the details through KPS. Fill in KPS Username, KPS Password and the Sorgulayan field (shown in Turkish), then try the connection with KPS Test Connection.
When Ask for birth day and month is off, the guest is asked only for the year of birth. With KPS verification day, month and year are required, so the option cannot be turned off.
E-mail Login
With E-mail Authentication the guest types their e-mail address, enters the code sent to it and signs in. The flow is the same as SMS authentication; the only difference is that name and surname are not asked, because the address itself identifies the guest. Secret word and admin approval can be used with this method too. The pre-auth access note above applies so that the code can be read.
Guests Without a National ID Number
TCKN Authentication asks for a national ID number. For guests who do not have one, turn on one of these methods:
- Hotel Management Authentication: The Hotel user verification options list has ID(TC Kimlik No/ Pasaport No), so a guest can be verified with their passport number.
- SMS Authentication, E-mail Authentication, WhatsApp Authentication or Ticket Authentication: None of them needs a national ID number.
Secret Word
To stop third parties from using your hotspot, you can turn on two-factor authentication with a secret word. When it is on, the sign-in page asks the guest for the Secret word in addition to the method’s own details; a guest who does not know it cannot sign in.
To turn it on, tick Secret Word Active/Passive in the method’s row of the table. In the Secret Word Settings section that opens:
- Secret Word: The word guests have to enter.
- Automatically Generate Secret Word: If ticked, the secret word changes by itself at regular intervals.
- Secret Word Refresh Frequency: Daily, Weekly or Monthly. After you change the frequency, generate a new secret word and save the Hotspot settings.
- Mail Output Profile: The profile the changed secret word is sent to. Mail Server Settings must be set up for this.
Admin Approval
When you tick Admin Approve Active/Passive, a guest cannot get online even with all details correct until you approve. The approval request arrives as an e-mail; Mail Server Settings must be set up for this. In the Admin Approved Settings section that opens:
- Waiting Time: How long the guest waits for approval, in minutes or hours; the default is 15 minutes. When it runs out the request is cancelled and the guest starts the sign-in again. If you choose Unlimited, the request never times out.
- Enable reference person information: If ticked, the guest is asked for a Reference Name, which is shown in the approval e-mail.
- Mail Output Profile: Decides where the approval e-mail goes.
Defined Mail Output Profile
If you pick a profile you defined earlier from the list, approval e-mails go to the address in that profile.
Domain(E-Mail Sponsor): E-mail Domain Approval
This is the first, default item of the Mail Output Profile list. When you choose it, the hotspot page asks the guest for the Email Address to Approve: the guest types the address the approval e-mail goes to. In the Domain field you enter your own domain (for example fortilogger.com); the guest can enter an address that belongs to this domain.
Ldap / Active Directory Verification Settings
Among FortiLogger Hotspot verification methods, ldap verification method is available. To use it, your FortiGate device must have an LDAP Server integration. If the LDAP server integration exists, follow the steps below to complete the FortiLogger side.
1 - Checking FortiGate and Network Connection
Follow the steps below:
- From the Fortigate interface, go to the User&Authentication > LDAP Servers tab.
- Then, by pressing the Test User Credentials button, enter the information of a user registered in your AD structure and press the Test button.
- Complete this step by making sure that the Connection status and User credentials information is Succesfull.

2 - FortiLogger Ldap Integration
In the FortiLogger interface open Config > Hotspot Settings. Tick the Check LDAP User option under the table and fill in the LDAP Connection Settings section that opens as follows;
- Ldap Domain: Enter the IP address or domain name of your server. Example: dolusoft.local
- Ldap Username: The user you connect with does not have to be an “Admin”. It can be any user that has read permission for the groups you enter in LDAP Search Path below. You can give the permission from the Delegate Control section of your Active Directory Users and Computers tool.
- Ldap Password: The password of the user you connect with.
- LDAP Search Path: Enter the path of the LDAP user group you will allow for hotspot authentication. To use more than one group, add a separate row for each group with Add New Search Path.
- Example: CN=Users,DC=dolusoft,DC=local
- Note: To find the group path, use the Active Directory Users and Computers application. Right-click the user group, go to Properties, open the Attribute Editor tab, and copy the distinguishedName value.
- Note: For the groups you enter in LDAP Search Path, you need to create a group on your FortiGate device under User&Authentication > User Groups.
You can test your connection settings with the Test LDAP Settings button. If the connection is successful, save the settings with the Save Hotspot Settings button.
3 - Defining Ldap Groups on FortiGate
You need to define on FortiGate the groups that belong to the paths you entered in LDAP Search Path in the previous step.
- For this, go to the User&Authentication > User Groups tab.
- Press the Create New button on the screen that comes up.
- After giving the group a name, select Type as Firewall.
- In the next step, follow the Remote Groups > Add steps.
- Select your AD connection from Remote Server.
- On the next screen, perform the right click > add selected steps on the user group or groups you want to add to the group and complete the selection by clicking OK.

4 - Adding Ldap Group to Hotspot Interface
- Go to Network > Interfaces and enter the Interface you have reserved for the Hotspot.
- Select your LDAP group in the User groups field and click the OK button.

5 - Access Rule of Ldap Group
In order for LDAP users to access the Hotspot interface, the following rule should be written.

6 - Ldap Group’s Internet Access Rule
For activating internet access of LDAP users, the following rule should be written.

7 - Adding Ldap Group to FortiLogger
In the FortiLogger interface, add the LDAP group you added to the Hotspot Interface to the Config > Hotspot Settings > Users Group Name field, tick the Authentication Active/Passive box in the Captive Portal/LDAP/AD row of the Auth Methods table, and click the Save Hotspot Settings button to complete the settings.
8 - Login with Ldap-Ad
You can log in by filling in the required information on the Hotspot Login screen according to your LDAP user information and clicking the Connect button.

9 - Post Session Monitoring
After successful login, you can follow your users in the Hotspot > Hotspot Users > Active Users tab.

WhatsApp Authentication Settings
In the FortiLogger Hotspot module, guests can log in with a verification code delivered to their phone via WhatsApp. Messages are sent through the Meta WhatsApp Cloud API directly from your own WhatsApp Business account; there is no intermediary provider and the message fee is paid directly to Meta. This document covers every step, from the preparation on Meta to the FortiLogger and FortiGate settings.
1 - Prerequisites
Before you start, make sure the following are ready:
- A Meta Business account (business portfolio) at business.facebook.com.
- A WhatsApp Business account linked to it and a business phone number registered on the WhatsApp Business Platform. This number cannot be used in the WhatsApp or WhatsApp Business app at the same time.
- A Meta app of type Business with the WhatsApp product added, at developers.facebook.com. (If you are setting up WhatsApp for the first time, Meta’s setup wizard creates this app for you.)
- A payment method defined on the WhatsApp Business account. Meta does not send template messages without one.
- The FortiLogger server must be able to reach graph.facebook.com on port 443 (HTTPS).
Attention !
With the test number provided by Meta, messages can only be sent to the numbers (up to 5) you add to the allowed list in the Meta panel. You need to register your own business number so that guests can log in.
Note: The Meta screenshots in this document were taken with the Meta interface in Turkish; the English names of the menus and buttons are given in the text.
2 - Getting the Phone Number ID
- Open WhatsApp Manager > Phone numbers.
- Click the number that will send the hotspot verification messages.
- Copy the Phone number ID shown under the number in the panel that opens.

Note: The Phone Number ID is not the phone number itself; it is the 15-16 digit identifier Meta assigns to the number.
3 - Creating a Permanent Access Token
FortiLogger connects to Meta with a non-expiring access token generated for a System user. This takes three steps: creating the system user, assigning the app and the WhatsApp account to it, and generating the token.
3.1 - Creating the system user
- Open Settings > Users > System users.
- Create a system user with Admin access using the Add button at the top right (e.g. fortilogger). If you already have a system user, you can use it.

3.2 - Assigning the app and the WhatsApp account
- Select the system user and click Assign assets.
- Choose Apps on the left, tick your Meta app and turn on Full control > Manage app.

- In the same window choose WhatsApp accounts on the left, tick your WhatsApp Business account and turn on Full control > Everything.
- Save with Assign assets.

3.3 - Generating the token
- With the system user selected, click Generate token.
- In the Select app step choose your Meta app and click Next.
- In the Set expiration step choose Never as the token expiration.

- In the Assign permissions step tick whatsapp_business_messaging and whatsapp_business_management, then click Generate token.
- Copy the generated token. It is not shown again after the window is closed.
Note: If you see the No permissions available warning in the Assign permissions step, no app has been assigned to the system user; complete step 3.2 and try again.

Attention !
The temporary token shown on the API Setup page of the Meta app expires after 24 hours, and a token with a 60 days expiration expires after 60 days; after that no code can be sent to guests. Always enter a system user token whose expiration is Never in FortiLogger.
4 - Creating the Verification Message Template
WhatsApp does not allow free text in business-initiated messages; the verification code is sent with an Authentication template approved by Meta.
- Click Create template on WhatsApp Manager > Message templates > Manage templates.

- Choose Authentication as the category and One-time passcode as the message type, then click Next.

- In Template name and language give the template a name made of lowercase letters and underscores (e.g. hotspot_verification) and choose the language (e.g. English).
- In Code delivery setup select Copy code. The preview should show a Copy code button under the message.
- Optionally add the security recommendation and the code expiration time in the Content section, then submit the template for review with Submit.
- Wait until the template status becomes Active (usually a few minutes).

Note: Note down the template name and language; they must be entered in FortiLogger exactly the same. Meta matches the template by name and language together: for example English (en) and English (US) (en_US) are different templates. The Zero-tap and One-tap autofill options are meant for mobile apps; select Copy code for hotspot login.
5 - FortiLogger WhatsApp Settings
- Open Config > WhatsApp Settings.
- Phone Number ID: The Phone number ID you copied in step 2.
- Access Token: The permanent token you generated in step 3. The token is stored encrypted and is shown hidden on the page after saving.
- Template Name: The name of the template you created in step 4 (e.g. hotspot_verification).
- Template Language: The language of the template on Meta (e.g. English (en)).
- API Version: Do not change the default value. Meta shuts down old API versions after about two years; update it if such an announcement is made.
- Enter a phone number that uses WhatsApp in Send Test Message and click Send. After a successful result, save your settings with Save WhatsApp Settings.

Attention !
A successful test result means the message was accepted by Meta; Meta does not report delivery separately. If the message did not reach the phone, check that WhatsApp is installed on that number and that you entered the number with its country code.
6 - Enabling WhatsApp Authentication in Hotspot Settings
- Open the Hotspot Settings tab on Config > Hotspot Settings.
- Edit the hotspot setting template you use, or create a new one with Create Hotspot Setting Template.
- In the Auth Methods table tick the Authentication Active/Passive box in the WhatsApp Authentication row. Optionally you can also enable Secret Word and Admin Approve in the same row.

- In the WhatsApp Settings section that appears below the form, tick Get Name and Surname information if you also want to ask the guest for name and surname together with the phone number.
- Save with Save Hotspot Settings.

Note: A hotspot setting with WhatsApp Authentication enabled cannot be saved until the Config > WhatsApp Settings page has been saved.
7 - Access to WhatsApp Addresses on FortiGate
The guest must reach the internet to read the verification code in WhatsApp, but at this point the hotspot session is not open yet. Phones with mobile data receive the code over mobile data. For devices without mobile data to read the code as well, pre-authentication access to the WhatsApp addresses must be defined on the FortiGate:
- Create FQDN (wildcard) address objects for *.whatsapp.com and *.whatsapp.net and put them in an address group.
- Add this address group to the Exempt Destinations list of the captive portal settings of the hotspot interface / SSID, or to a separate firewall policy that does not require authentication.
For the general steps of the FortiGate hotspot configuration see the FortiGate - FortiAP Hotspot Configuration document.
8 - Guest Login Flow
- On the hotspot login page the guest selects WhatsApp Authentication and enters the phone number.
- FortiLogger sends the verification code to the guest’s WhatsApp account with the saved template.
- The guest copies the code with the Copy code button in the message, pastes it into the login page and opens the session.
Note: Each verification message is charged by Meta at the authentication category rate. For current prices see the WhatsApp pricing page.
9 - Common Errors
When the test message cannot be sent, the error code and description returned by Meta are shown on the page. Common cases:
- Access Token invalid or expired (Meta code 190): A temporary token was used or the token was revoked. Generate a new token with expiration Never as in step 3.
- Token has no permission for this number (10, 131005): The WhatsApp account is not assigned to the system user, or the whatsapp_business_messaging permission was not granted.
- Invalid parameter (100): The phone number may have been entered instead of the Phone Number ID; check the Phone Number ID and the API version.
- Template not found (132001): The template name or language is not exactly the same as on Meta, or the template is not approved yet.
- Template parameter mismatch (132000, 132012): The template was not created in the Authentication category with the Copy code button.
- Recipient not in allowed list (131030): The Meta test number is being used; add the recipient to the test list or switch to your business number.
- No payment method (131042): Add a payment method to the WhatsApp Business account.
- Meta server unreachable: Check that the FortiLogger server can reach graph.facebook.com on port 443, and check proxy and firewall settings.
When a code cannot be sent to a guest on the hotspot, the guest only sees a general error message; the detailed error returned by Meta is written to the FortiLogger event log (code 210).
Was this page helpful?
Thanks for your feedback!