This is a simple 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 9f408c5 Jul 24, 2018
Permalink
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
.gitignore 🔧 Add gitignore file May 31, 2018
LICENSE Version 1.0 May 23, 2018
README.md Update README.md Jul 24, 2018
app.js Version 1.0 May 23, 2018
package.json 🔧 Update package.json with public url's May 31, 2018

README.md

Adobe IMS Oauth Playground

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

  1. Setup
  2. Run It!

Setup

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!

Credits

License

MIT