Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 2.06 KB

README.md

File metadata and controls

57 lines (42 loc) · 2.06 KB

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

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