Google Login

Login with Google Credentials is intended to be free; guests cannot be charged. To set up a Google Login for guests, create and configure a Google Project.
The Google login requires at least one valid ticket template configured as 0€ (free). If no ticket template is available, a new example template will be created.

Creating a Google Project

In order to use the Google Services, a project has to be created beforehand. This can be done on the Google Developers Page, accessible here

Log in with a regular Google account and then select Create project in the top left corner.

image

If prompted, read and eventually agree to the Terms of Service, then continue with creating a new project:

image

Select the newly created project from the list, toggle the menu on the right side and then select Settings.

image

Afterwards, click the menu button on the very top left corner and select APIs & Services.

image

On the next page, navigate to Credentials and select Create Credentials and within this menu, select OAuth client ID.

image

If this is the first project/app, some missing information must be entered in the next step.
Follow the prompted link to the OAuth consent screen, select External, and fill out all required fields.

For the Application home page field, use the Surf-LAN domain: https://hotspot.internet-for-guests.com.

It is not necessary to add an authorised domain here, but the Developer contact information has to be filled out. On the next page, proceed by clicking Add or remove scopes. Check the first row ../auth/userinfo.email and proceed with the button Update. Afterwards, hit Save and continue. On the next page a test user can be added to test the app before taking it life.
This is not necessary since this app will be public after all required fields have been filled out, so proceed with Save and continue instead.

image

Now that the OAuth consent screen has been set up, navigate back to the Credentials menu, click on Create Credentials and select OAuth client ID from the dropdown-menu. On the next page, select Web application as Application type and add both, an Authorized JavaScript origins and an Authorised redirect URIs entry like so:

Authorised JavaScript origins: https://hotspot.internet-for-guests.com

Authorised redirect URIs: https://hotspot.internet-for-guests.com/?auth=social&hauth.done=Google

Proceed with the button Create.

image

The Client ID and Client Secret will be displayed. This information can be accessed again later by editing the OAuth web application.

WebAdmin Configuration

In the IACBOX WebAdmin navigate to Login methods/Social networks and activate Google. Fill out the Client ID and Client secret from the last step. Select one of the given Redirect URLs from the drop-down, it must match with the Redirect URL used in the Google APP settings and then Save.

image

Login Page

If only the default login page is used and no new theme has been created, the Google login button will appear automatically.
However, if a new theme has been created, Google login may need to be manually activated as a login method.
This can be done by editing the currently active Theme in the WebAdmin menu Login page/Login page editor.

In the editor, find and click on Login box 1 (left bottom corner) and then in top right corner, select Social networks in the Tab Element. Proceed by clicking on Save. The result on the login page will look like the preview.

image