How to configure Google Workspace provider authentication
Provider authentication allows Square 9 products to leverage 3rd party providers to handle user authentication. To give your Google Workspace users the ability to leverage their Google login for accessing GlobalSearch, administrators can follow this guide.
Customers looking to leverage this feature must be on GlobalSearch v6.3.101 or greater.
Instructions
The steps described here are performed by your Google Workspace administrator. Square 9 leverages Google’s Cloud Identity Platform to enable the oAuth flow for users. Note, this provisioning IS NOT performed from Workspace Admin dashboard. It is managed through the Cloud Console.
Navigate to https://console.cloud.google.com/ and authenticate.
Create a new project for GlobalSearch authentication. Its name is not important to the authentication process.
Ensure the new project is selected in the console.
Navigate to APIs & Services, then choose oAuth consent screen.
Select your consent screen options. Note, you can only have a single consent screen per application, and once you create a consent screen, you can not delete it. The only way to get rid of it completely is to delete the project.
Choose the user type for your desired authentication, the click Create:Provide the basic App information that will display in the oAuth login prompt. App Name should represent what the user is providing credentials for. We recommend Square 9 Softworks, but the name is not relevant to the Auth process itself. Support Email is an internal email address, NOT a Square 9 address. App Logo can be the logo of your choosing.
Provide an email for Developer Contact. Again, this is an internal Email Address and has nothing to do with Square 9. Generally this would be the address of your Google Cloud admin.
One the Scopes page, click Add or Remove Scopes and choose email, profile, and openid.
Click Save and Continue.
On the Credentials tab, click Create Credentials, then select oAuth Client ID.
In the Application Type drop down, select Web application. Provide a name (Square 9 Softworks). Add an authorized redirect URI. Note the redirect URI must adhere to the following format:
https://YourGlobalSearchServerAddress/square9web/lib/oidc/oidc-callback.htmlClick Create, and you should see an oAuth Client created screen that includes a Client ID. The Client ID provided is required by the GlobalSearch Administrator to finish the configuration steps.
This completes the steps required by the Google Cloud Admin.On the GlobalSearch Server, navigate to c:\inetpub\wwwroot\square9web and open Config.json.
The following section will need to be added to the file. Be sure to add the Client ID received in Step 12 above.
CODE"authProviders": ["google"], "google": { "orgUrl": "https://accounts.google.com", "clientId": "Your Client ID here" }
Save the changes and your environment is not properly configured for authentication through Google Workspace. Users logging in will now have a Sign in with Google option.