Follow these steps to configure an OpenID Connect Single sign-on (SSO) identity on
Google.
-
Go to the Google developer console page https://console.developers.google.com/
-
Create a new project (or use an existing one)
-
From the project page select Credentials.
-
In the Credentials page, select OAuth client ID
from the Create credentials drop-down menu.
This opens the
Create OAuth client ID page where you select a product
type and create a client identity. For more information and help creating the client id, refer to
the
OpenID Connect page in the Google documentation.
-
Choose Web Application as product
-
In the Authorized JavaScript origins field, specify your JavaScript
hostname (for example, https://host:port/gas)
-
In the Authorized redirect URIs field, specify the URI redirection where
the GAS is listening for the response (i.e.
https://host:port/gas/ws/r/services/OpenIDConnectServiceProvider/oauth2callback)
-
Click Create.
The OAuth2
Client and
Client Secret IDs
are displayed.
Note:
You will need to save these in your Web service application configuration file.
You have now set up Google as your IdP for your Web services to use OpenID Connect SSO.