This sample app will show you how to implement Adobe Connection for Lightroom using Node.js.
After setting up the sample, you will have a Node.js app that:
- Runs on
https://localhost:8000
- Lets a user log in with their Adobe ID
- Prompts the user to authorize the app with requested scopes
- Lets the user view the projects associated with a connection
- interacts with the Adobe Lighroom Desktop application as a connection
- Lets the user log out
You can find a companion repo for this developer guide on GitHub.
Be sure to follow all instructions in the readme
.
- Node.js and the
npm
package manager - OpenSSL CLI
This guide will assume that you have read the Adobe OAuth 2.0 Guide for Web.
You must also have a registered app on the Adobe I/O Console with the following settings:
Platform
: webDefault redirect URI
:https://localhost:8000
Redirect URI Pattern
:https://localhost:8000
The following steps will help you get this sample up and running.
Adobe OAuth 2.0 requires SSL, so you will need to create a self-signed cert using the OpenSSL CLI. Be sure to run this in the ./server
directory:
$ cd server
$ openssl req -x509 -newkey rsa:4096 -nodes -out cert.pem -keyout key.pem -days 365
Make sure that after running this command you have the cert.pem
and key.pem
files at the top level of the .server
directory.
The package.json
file contains a list of dependencies. Run the following command from the top level directory of the app to install these dependencies:
$ cd ..
$ npm install
Enter the required credentials in .env
:
HOST=localhost
PORT=8000
KEY="YOUR_API_KEY"
SECRET="YOUR_API_SECRET"
You can get your Adobe API Key and Secret from your registered app page on the Adobe I/O Console.
After completing the configuration steps, start the server:
$ npm start
To access the app, go to https://localhost:8000
. Click through any cert warnings in the browser.