Sign in with Google
Create your own Google OAuth client, enter it in the panel and let guests connect with their Google account.
With Google sign-in, the guest taps the Google button on the login page, signs in with their Google account, accepts the terms of use and gets online. No password, code or SMS is needed.
The method is off by default. Google sign-in does not run on a shared Hotspotly app. It uses the OAuth client in your own Google Cloud project. Until that client is configured and enabled, the method does not appear on the login page.
| Step | Where | What you do |
|---|---|---|
| 1 | Hotspotly panel | Add the method and copy the redirect URI |
| 2 | Google Cloud | Create an OAuth client and get the Client ID and secret |
| 3 | Hotspotly panel | Enter the details, save and publish the design |
| 4 | Guest network | Try Google sign-in from a phone |
Before you start
- A Google account with access to the Google Cloud Console. Creating a project is free; this method does not need a billing account.
- Your hotspot must be connected to a router with the login page installed: Portal provisioning.
- No extra router ports or firewall rules are needed. Hotspotly adds the addresses Google's sign-in pages need to the pre-login access list (walled garden) by itself.
- The client details are saved to your customer account, so all your hotspots share the same Google client. You do not need a separate client per hotspot.
- Your package includes the Social login module. If it does not, the method row in the login page designer shows Unavailable with "This method is not included in your package." and saving its settings is refused, and the method is not offered on the guest page. Upgrade with Upgrade on your dashboard (or the Upgrade package button on a locked card), or ask your reseller.
1. Add the method and copy the redirect URI
- Hotspots → your hotspot → Design → Methods.
- If Sign in with Google is not in the list, pick it from Add method and press Add.
- Open Method settings on the Sign in with Google row. A box with the Google and Facebook settings appears.
- In the Google section, press Copy next to the Redirect URI (add it to your OAuth app) box.
The address has this format:
Always use the value from the panel
The line above only shows the format. Google compares the address character by character: if
http/https, the domain or a trailing / differ, sign-in fails. Do not type it by hand; copy it
with the Copy button in the panel.
2. Create an OAuth client in Google Cloud
Hotspotly does not sign in to the Google Cloud Console on your behalf. Do the steps below with your own Google account. Google renames menus from time to time; if your screen looks different, check the linked official documentation.
App details and audience
- In the Google Cloud Console, select a project or create a new one (for example "Hotel Wi-Fi").
- Open Google Auth Platform from the menu. If the project is not configured yet, press Get started.
- On the Branding page, enter the app name (guests see it on the Google screen, so use your business name) and the user support email.
- On the Audience page, choose External as the user type.
- Set the publishing status to In production (Publish app). While it is Testing, only the Google accounts you added as test users can sign in; other guests get an "Access blocked" error.
Hotspotly only requests the openid, email and profile scopes. These are Google's basic scopes,
so you do not need to add anything on the Data Access page. If you add a logo or your app meets
one of Google's verification criteria, Google may also ask for brand verification; see the official
documentation.
Create the client
- On Google Auth Platform → Clients, press Create client.
- Choose Web application as the Application type and give the client a name (only you see it).
- Under Authorized redirect URIs, press Add URI and paste the redirect URI you copied in step 1.
- Leave Authorized JavaScript origins empty; Hotspotly exchanges the code on the server.
- Press Create.
- In the dialog that opens, copy the Client ID and Client secret or download them as JSON. The client secret is shown in full only at this moment; afterwards the console shows only its last four characters. If you lose it, add a new secret to the same client.
Google changes may take a while
Google notes that changes to client settings can take a few minutes (sometimes longer) to take effect. If you have just added the address, wait a little before testing.
3. Enter the details in the panel and publish
- Go back to Method settings on the Sign in with Google row of the design page.
- Tick the Google checkbox at the top of the Google section. If it is not ticked, the method stays off even when the details are saved.
- Paste the Client ID into Google Client ID (it ends with
<...>.apps.googleusercontent.com). - Paste the client secret into Google Client Secret.
- Press Save OAuth settings. The badge changes to Configured.
- Press Publish at the top of the page.
After saving, the panel only shows the secret masked. If you leave the field empty and save again, the saved value is kept (Leave empty to keep the saved value.). To delete the secret, use Delete saved value; when you save, Google sign-in is turned off as well.
Once the design is published and your Google client is enabled, Hotspotly automatically adds these addresses to the pre-login access list of your routers, so guests can reach Google's sign-in page before they log in. The settings box shows this list with the following note:
Hosts opened before login (the router opens port 443 to these names' IPs, so other services of the provider on the same IPs may also be reachable without login):
You do not need to add router rules by hand. If you turn the client off or delete it, these addresses are removed in the next automatic provisioning.
4. Verify: connect as a guest
Test in a browser such as Chrome or Safari, not in the small sign-in window the phone opens by itself (see below for why).
- Connect a phone to the guest network, open the browser and go to any
http://address. The login page opens. - Tap Login with Google.
- Sign in with your Google account. The Google screen shows the app name you entered in step 2.
- Back on the login page you see "Your Google account is verified". Accept the terms of use and tap Continue.
The iPhone and Android sign-in window
Social login is off by default. It does not appear on the portal until you configure and enable your own Google / Facebook OAuth app. Google sign-in may be blocked inside the automatic captive window (CNA) on iPhone and Android; guests are shown an 'open in browser' hint. The hosts below are opened for pre-login access (walled garden) so the sign-in pages work.
When a phone joins Wi-Fi, it opens the login page in its own small window (CNA). Google blocks
sign-in in such embedded browsers (disallowed_useragent). When Hotspotly recognizes this window,
it shows the guest a warning and an "open in a browser" hint, but it cannot force the sign-in into a
browser. So do not make Google the only method; keep another method such as SMS, vouchers or
click-through enabled next to it.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
"This method is not included in your package." on the method row, or saving the settings fails with 403 |
Your package does not include Social login; the server answers 403 ENTITLEMENT_REQUIRED |
Upgrade with Upgrade on the dashboard to a package with the module, or ask your reseller. Existing data is kept; the module opens within 1 minute. |
| Unavailable and "No Google OAuth app is configured (settings below)." in the designer | The Client ID or secret is missing, or the Google checkbox is not ticked | Complete step 3 and press Save OAuth settings |
| The Google button does not appear on the login page | The design was not published or the method is off | Press Publish; check that the method row is enabled |
| "Error 400: redirect_uri_mismatch" on the Google screen | The address saved in Google is not exactly the one in the panel | Copy the panel address with Copy and paste it into Authorized redirect URIs; wait a few minutes |
| "Access blocked" on the Google screen | The app is in Testing and the guest is not a test user | Set the app to In production on the Audience page |
| "disallowed_useragent" on the Google screen, or the sign-in window does not move on | The phone's automatic sign-in window (CNA) is in use | The guest should open Chrome or Safari and visit an http:// address, or choose another method |
| "Account verification could not be completed in this browser" page after Google | Sign-in was finished in another browser, the link was opened twice, or it took longer than 10 minutes | Reopen the login page and start again |
| The guest returns to the login page with a "could not be verified" message | The client secret is wrong, deleted or disabled in Google | Check the client's secret in Google; if needed, create a new one and enter it in the panel |
| Google's sign-in page does not load or looks broken | The pre-login addresses were not written to the router | Check the provisioning status on the portal card of the device: Portal provisioning |
| Saving fails with "maskeli değer düzenlenemez" (this message is shown in Turkish) | The masked secret field was edited | Reload the page; to change the secret, type the new value from scratch |
Security and privacy
- Hotspotly only requests the
openid,emailandprofilescopes. The guest's email address and name are not stored. The only thing stored is the permanent user ID Google issues for that account; it is kept encrypted and linked to the access logs. - The Google sign-in and code exchange finish on the Hotspotly server, not in the guest's browser. The client secret is never sent to the browser; it is stored encrypted and shown masked in the panel.
- The Google addresses opened before login are reachable without any record and this access is not part of the access log. The router opens port 443 to the IP addresses of these names, so other Google services on the same IPs (for example YouTube or Gmail) may also be reachable before login. See the address list in step 3.
- Make sure the privacy notice on your login page covers Google sign-in and the stored account ID: Legal texts and guest consent.
- Do not share the client secret by email or in chat groups. If you think it has leaked, create a new secret in Google Cloud, enter it in the panel, then disable and delete the old one in Google.