Skip to content

Sample demo app that will let me understand how to connect to Workfront API with OAuth2 PKCE flow

Notifications You must be signed in to change notification settings

Workfront/oauth2-pkce-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Adobe Workfront OAuth2 PKCE Demo

Sample demo app that will let you understand how to connect to Adobe Workfront API through OAuth2 PKCE flow.

Introduction

Proof Key for Code Exchange (PKCE) is a technique described in RFC7636, and is used for SPA or native apps. More details on how to configure the OAuth2 application for PKCE can be found in the Create an OAuth2 single-page web application using PKCE page.

More details on how the PKCE flow works can be found in article: Configure and use your organization’s custom OAuth 2 applications using PKCE flow

Serving the Sample HTML File

The HTML needs to be served somehow from a Web server. Because the client is just a static HTML page, this can be done with a trivial server configuration. Bellow are a couple of different ways to very easily server the static HTML page.

NOTE: you can use your own way of searching HTML or even copy the JS function to your own web application. This page is just for educational proposes.

$ npx http-server -p <port>
$ php -S <host>:<port>
Python 2 — $ python -m SimpleHTTPServer <port>
Python 3 — $ python -m http.server <port>

Update HTML file

NOTE: localhost cannot be used as a valid redirect URL, if you don't have an externally available host, you can use Ngrok.

About

Sample demo app that will let me understand how to connect to Workfront API with OAuth2 PKCE flow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages