oauth

Josh Nerius

2 minute read

YouTube video: https://www.youtube.com/watch?v=8_yHYAPDpvw The live coding team: josh.nerius, ctomasi This week, we returned to the topic of OAuth and learned how to generate OAuth tokens per user instead of per REST Message/Method. When calling some APIs, sharing a single token between every user in ServiceNow is not always appropriate and instead we want each user to have their own token. Examples: Calling the Dropbox API and interacting with the currently logged in user’s files Calling the GitHub API and forking repositories on behalf of the current ServiceNow user Video Index 00:00 - Intro

Josh Nerius

7 minute read

In Inbound OAuth Auth Code Grant Flow Part 1 - Getting Started with Postman, we configured Postman to use the new OAuth functionality available in Istanbul. In this post, we’re going to implement this functionality in a real web application. A Few Notes About the Node.js “My Work” App The ServiceNow Interfaces team has released a series of sample applications that demonstrate the use of ServiceNow APIs. These apps are available on GitHub here, and are great resources for learning more about ServiceNow APIs and getting some example code up and running quickly.

Josh Nerius

4 minute read

As highlighted in my New Integration/API and Authentication Features Blog Post, Istanbul introduces two new inbound OAuth 2.0 flows: Authorization Code Grant Flow Implicit Grant Flow These flows allow you to build apps that interact with ServiceNow APIs without needing to be directly aware of an end user’s username/password. Some possible use cases include: Building a mobile (iOS or Android) app that interacts with task records in a ServiceNow instance Building a web application that interacts with ServiceNow on behalf of your users This blog post is a quick tutorial to:

Josh Nerius

4 minute read

The Istanbul release introduces some very exciting features for APIs and Authentication. This post will bring you up to speed on what’s new, and we’ll follow up with more detailed posts about individual features in the coming days/weeks. New Inbound OAuth 2.0 Features Have you ever tried to build an app that integrates with ServiceNow, only to find that you couldn’t issue API calls on behalf of a specific user unless that user had credentials stored locally in the instance?

Josh Nerius

2 minute read

YouTube video: https://www.youtube.com/watch?v=NyFooBktJNE The Live Coding Team: josh.nerius, dave.slusher, ctomasi In last week’s Live Coding Happy Hour, we picked up where we left off previous week and figured out how to programmatically get an OAuth Access Token from the oauth_credential table for our Bit.ly integration. Video Index 04:04 - Quick recap of what we did last week 06:59 - We want to get the token dynamically 09:13 - Exploring the oauth_credential table 22:16 - We have a working script to retrieve the token!