Implement SSO with OAuth 2.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 10:23 PM
Hello,
Does anyone know how to implement SSO with OAuth2.0 in servicenow?
I would like to when user enters ServiceNow portal with browser, is redirected to OAuth2.0 provider, user logs in to OAuth2.0 provider, OAuth2.0 provider redirects back to ServiceNow with access token. Then ServiceNow use the token information to login ServiceNow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 12:23 AM
Sorry, I tried this solution, but it doesn't work. When I login to ServiceNow, it won't redirect to Idp Provider login page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 01:41 AM
Sure, here are the steps to implement SSO with OAuth2.0 in ServiceNow: 1. **Create an OAuth API Endpoint for External Clients:** - Navigate to System OAuth > Application Registry. - Click on New > Create an OAuth API endpoint for external clients. - Fill in the necessary details like Name, Redirect URL, etc. and submit. 2. **Create an OAuth Profile:** - Navigate to System OAuth > Application Registry. - Click on New > Connect to third-party OAuth Provider. - Fill in the necessary details like Name, Client ID, Client Secret, etc. and submit. 3. **Configure OAuth2.0 Provider:** - You need to configure your OAuth2.0 provider with the Redirect URL and other details provided by ServiceNow. 4. **Configure ServiceNow for SSO:** - Navigate to Multi-Provider SSO > Identity Provider. - Click on New to create a new Identity Provider. - Fill in the necessary details like Name, Entity ID, etc. and submit. 5. **Configure OAuth2.0 Provider to Redirect to ServiceNow:** - You need to configure your OAuth2.0 provider to redirect back to ServiceNow with the access token after the user logs in. 6. **Configure ServiceNow to Use Access Token:** - ServiceNow uses the access token information to log in to ServiceNow. This is done automatically once the OAuth2.0 provider redirects back to ServiceNow with the access token. 7. **Test the SSO:** - Test the SSO by trying to access ServiceNow. You should be redirected to your OAuth2.0 provider for login, and then redirected back to ServiceNow after successful login. Please note that the exact steps might vary depending on your OAuth2.0 provider.