The CreatorCon Call for Content is officially open! Get started here.

Application Registry for "Login with Service Now" option

sahilkhanna
Tera Expert
I want to add a "Login with Service Now" button to my webpage. Here's what I've done so far.
 
  1. Create a new application in the Application Registry of my ServiceNow instance (dev1xxxx).
    • `Create an OAuth API endpoint for external clients`
  2. On my website, I ask the user to enter the ServiceNow instance ID and click the login button.
 
Behaviour
  • When I enter my ServiceNow instance ID and click on login, I'm redirected to `https://dev1xxxx.service-now.com/oauth_login.do`. This is the expected behaviour.
  • When another user enters his ServiceNow instance id (prod1xxxx) and clicks on login, he is redirected to `https://prod1xxxx.service-now.com/oauth_login.do`. This page displays an error message "unauthorized_client: The client credentials provided (those of the service you are using) are either not valid or not trusted".
 
Is there a way to allow users of different ServiceNow instances to log in to my website using their OAuth credentials?
 
I can see the below types of applications in the Application Registry
 
  • Create an OAuth API endpoint for external clients
  • Create an OAuth JWT API endpoint for external clients
  • Connect to a third-party OAuth Provider
  • Configure an OIDC provider to verify ID tokens.
  • Connect to an OAuth Provider (simplified)
0 REPLIES 0