Open ID Connect in ServiceNow using Google
We can login into ServiceNow with External Sign in options like Goggle, OKTA, Facebook etc if we have OIDC configuration details with us like
1. Client ID
2. Client Secret
3. Well-known configuration URL
Here I am talking about Google OIDC configuration in SN. Before we start the implementation, we need to have the below plugins installed in SN.
1) com.snc.integration.sso.multi.installer
2) com.glide.e_signature_approvals
First, we need to setup Google configuration. Here are the steps to be followed. Login into Gmail Account and open: https://console.developers.google.com
· Create a project and generate OAuth Client ID credentials
· In the credentials Section update the ‘Authorized Javascript Origins’ and ‘Authorized Redirect URLs’ with PDI details like: https://devXXXX.service-now.com and https://devxxxx.service-now.com/navpage.do
· Create credentials
· Now we get client id & client secret and also we can download JSON file of the credentials
Second, we need to finish the ServiceNow configuration with the above details.
· In left navigation open “Identity Providers” and click New
. Select “OpenID Connect” option and system would prompt to enter the details
· Fill Name, Client ID, Client Secret and the Well-known configuration URL for Google is https://accounts.google.com/.well-known/openid-configuration
· Click on import and OIDC Configuration is ready now
· Now it is the time to update the Properties under Administration from Multi-Provider SSO module. Here is the snapshot.
Test the changes from the portal by using "Login with Google" option like below
After giving the gmail id and password, we can login into ServiceNow portal. But before that, we need to have the user should be created using this gmail id. Otherwise, we can see the logout screen always 😃
Overall, the above mentioned steps in both Google and SN are very use and no code is written in SN to finish this implementation.
References:
1) www.Google.com
2) https://docs.servicenow.com/
3) https://developer.servicenow.com/




