Skip to content

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

License

Notifications You must be signed in to change notification settings

adobeio/Adobe-IMS-OAuth-Playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published