Skip to content

gpeacock/connection-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adobe Connection: Node.js

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:

  1. Runs on https://localhost:8000
  2. Lets a user log in with their Adobe ID
  3. Prompts the user to authorize the app with requested scopes
  4. Lets the user view the projects associated with a connection
  5. interacts with the Adobe Lighroom Desktop application as a connection
  6. Lets the user log out

Contents

  1. GitHub
  2. Technology Used
  3. Prerequisites
  4. Configuration
    1. Create an OpenSSL cert
    2. Install Node.js packages
    3. Enter your Adobe API credentials
  5. Usage
  6. Other Resources

GitHub

You can find a companion repo for this developer guide on GitHub.

Be sure to follow all instructions in the readme.

Technology Used

  1. Node.js and the npm package manager
  2. OpenSSL CLI

Prerequisites

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:

  1. Platform: web
  2. Default redirect URI: https://localhost:8000
  3. Redirect URI Pattern: https://localhost:8000

Configuration

The following steps will help you get this sample up and running.

Create an OpenSSL cert

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.

Install Node.js packages

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 your Adobe API credentials

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.

Usage

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.

Other Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published