The processing of integrating an IdP has several steps that are common and discussed in the previous chapter. This chapter discusses steps that are specific to the Google Identity.
In order to add a new identity platform you need to do two things.
Register with the identity service on its website and note down value of parameters.
Using a sample user profile response found on its website, write the code snippet to map the user profile onto Trillo Workbench user schema.
Registering applications Google
The steps of registering with an identity service are found on its website. For the Google Identity, we have repeated here for explaining concepts using it as a sample. Each identity has similar content based on OIDC standards. It is organized differently. The current documentation of the Google Identity too may have changed, but the principle of registration would remain the same as described below.
After creating the consent screen you have to configure the setting for the OAuth for the project. You will be providing the following data on this page below.
Consent Configuration
Once the configuration is complete the page will look as shown below. You must add one valid email (which can be identified by Google) to confirm that the workbench configuration is working end to end.
Create authorization credentials
On the credential screen click 'Create new credentials' and generate a new 'OAuth client ID'
OAuth Client ID and Credentials
You must provide an authorized redirect URI. The format of this URI will be https://your-server-name/_oauth2/callback
Your application client ID and secret will always be shown on the right-hand side of this page.
Credentials for the Web App
List of Parameters Collected During Registration
During the registration process you will collect the following parameters.