Skip to main content

Using social media login with the guest loyalty module

Visitors can log in to the guest loyalty module of RESnWEB by using social media sites.

Written by Anett Hirschmann
Updated over a week ago

With the RESnWEB Guest loyalty module's social media login, visitors using the system can enter their Google login details and continue browsing as a registered customer.

To enable your guests to log in to the RESnWEB returning guest system with a Google account, you need to make a few settings in the Google Cloud settings interface:

(You can login here with your Google account, if you don't have one, you need to create one.)

Please find below some help for setting them up.

First, accept the user terms when prompted by Google.

Create new project

Click on “New Project”, and then create the project by clicking on the “Create” button.

Once the project has been created (make sure this is selected), in APIs & Services menu, select the “OAuth consent screen” menu and click on the “GET started” button.

A setup wizard process starts with fields to be filled in.

Fill in the required fields on the next page:

App information:

App Name: Name of the accommodation

User Support email: Users can send their questions to this e-mail address.

Audience:

External

Contact information:

Google will send notifications about changes in the project to this email address.

Finish:

Accept the consent.

Click the “Create” button.

In the Branding menu, fill in the following fields:

App logo:

The Application’s logo can be selected here (optional). The logo should meet the following requirements:
- Size not bigger than 1mb.
- Only JPG, PNG and BMP formats are accepted.
- The logo should have a square shape.
- 120 px wide and 120 px high for best results

App domain:

  1. Application home page: Provides a link for the users on the main site. (e.g. https://bambara.hu)

  2. Application privacy policy link: Privacy policy link.

  3. Application terms of service link: General terms and conditions link.

You can copy the links to the Privacy policy and the General terms and conditions from “Privacy policy URLs” and “TOS URLs” sections in the “For web developers” menu under “Hotel information” on the RESnWEB admin site.

The links to the Privacy Policy and the General Terms and Conditions are required so that they can also be viewed in the Google login window.

Authorized domains:

The website domain name must be entered here. It is important that if Google verifies the domain during the process, the domain name must be approved in Google Search Console.

Developer contact information:

You can enter the e-mail address here via which Google can send notifications of changes/projects:

support@resnweb.com

Then, click on “Save” at the end of the page.

Click on the Data Access menu.

Scopes are permissions that allow the project to access certain types of personal user data from their Google account.

For this, we can use the “Add or remove scopes” option.

Basically, two scopes are required for an account to be created:

.../auth/userinfo.email

.../auth/userinfo.profile

Once these have been selected, click “Update” and then “Save.”

In the “Clients” menu, click the “Create client” button.

The Application type should be set to “Web Application.” The name should be “RESnWEB Loyalty.” In the “Authorized JavaScript origins” field, enter the custom domain name that was previously created for the RESnWEB system, then click the “Create” button to receive the Client ID required to configure the login on the next page. Copy this value.

If the property already uses a custom domain name, it can be checked in the RESnWEB admin interface under Hotel information / For web developers.

If the custom domain name has not yet been configured, please forward the following guide to your domain provider or web administrator.

In this case, the URL of the property’s website should be entered at this step. Later, once the custom domain name becomes available, the settings can be modified accordingly.

Now paste the Client ID into the RESnWEB admin interface under the Loyalty menu by clicking Settings, in the Third-party login settings section.

As the final step, click on the Audience menu, then click “Publish app” and “Confirm.”

Check settings

a) In the Clients menu, in the OAuth 2.0 Client IDs block, you should see the RESnWEB Loyalty option

b) When opening RESnWEB Loyalty, the Authorized JavaScript origins section should display the property’s subdomain name, e.g. https://booking.bambara.hu.

c) In the Branding menu, the settings must be checked.

  • App information

    • App Name: accommodation name

    • User support email: users will be able to send their questions to this email address (e.g. example@bambara.hu)

  • App domain

    • Application home page: The address of the accommodation’s home page should be listed here, e.g. https://bambara.hu (You do not need to see the subdomain here.)

    • Application privacy policy link: link to privacy policy

    • Application terms of service link: Link to general terms and conditions

      • The link to the privacy policy and the terms and conditions of service can be found in the RESnWEB admin interface, under "Hotel information" in the "For web developers" menu, under "Privacy policy URLs" and "TOS URLs

Did this answer your question?