This is a simple node JS app that allows you to retrieve Adobe IMS OAuth authorization code and access token based on Adobe I/O Console integration credentials
Clone or download
Latest commit 0a3a075 Jul 24, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
public Update index.html May 23, 2018
routes Version 1.0 May 23, 2018
views Version 1.0 May 23, 2018
LICENSE Create LICENSE May 25, 2018 Update Jul 24, 2018
app.js Version 1.0 May 23, 2018
package.json Update package.json May 31, 2018

Adobe IMS Oauth Playground

Try this simple app to locally run and interact with Adobe IMS!

  1. Setup
  2. Run It!


To set up the playground:

Step 1: Create an integration on Adobe Console

You need to set up OAuth web credentials to use the sample.

  • Select "Web" for the platform
  • For the default redirect URI:
    • https:// + some domain name + :3000 + /callback
    • For example: https://localhost:3000/callback
  • Input a corresponding redirect URI pattern.
    • For example: https://www\.example\.net/callback

Step 2: Create a self-signed SSL certificate to run a local https server

Because we are only running this locally and in non-production mode, we can secure the server connection with a self-signed SSL cert. This can be done via openssl.

Make sure the openssl library is installed by checking the path

$ which openssl

Install if necessary: MacOSX Homebrew, Windows

In the project directory, generate your cert and private key files: server.key and server.crt. The challenge password is used for certificate revocation-- you can leave this empty for the example

$ openssl genrsa -des3 -passout pass:x -out server.pass.key 2048
$ openssl rsa -passin pass:x -in server.pass.key -out server.key
writing RSA key
$ rm server.pass.key
$ openssl req -new -key server.key -out server.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
A challenge password []:
$ openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt

Run It!

To run the app, execute the following commands:

$ npm install
$ npm start

Browse to https://localhost:3000 and follow the shown instruction. Paste your credentials (which can be found in your I/O integration), and you are ready to start!