Git Product home page Git Product logo

adobe-ims-oauth-runtime-playground's Introduction

Adobe-IMS-OAuth-Runtime-Playground

A simple app deployed on Adobe I/O Runtime platform based on passport-adobe-oauth2 strategy. Helps retrieve the access and refresh token for client created on Adobe I/O Console.

  1. Setup
  2. Run It!

Setup

Clone the repository. Add a unique secret password for serverside encryption/decryption in callback.js Line 4862 https://github.com/adobeio/Adobe-IMS-OAuth-Runtime-Playground/blob/master/callback.js#L4862

To set up the playground execute the following commands:

$ wsk package create adobe-oauth-playground
$ wsk action create adobe-oauth-playground/oauth oauth.js --web true
$ wsk action create adobe-oauth-playground/callback callback.js --web true

Retrieve action urls:

$ wsk action get adobe-oauth-playground/oauth --url
$ wsk action get adobe-oauth-playground/callback --url

Update action parameters with above urls:

$ wsk action update adobe-oauth-playground/oauth --param oauth_url <COPY_OAUTH_ACTION_URL> --param callback_url <COPY_CALLBACK_ACTION_URL>

e.g.[wsk action update adobe-oauth-playground/oauth --param oauth_url https://runtime.adobe.io/api/v1/web/io-solutions/adobe-oauth-playground/oauth --param callback_url https://runtime.adobe.io/api/v1/web/io-solutions/adobe-oauth-playground/callback]

$ wsk action update adobe-oauth-playground/callback --param oauth_url <COPY_OAUTH_ACTION_URL> --param callback_url <COPY_CALLBACK_ACTION_URL>

e.g. [wsk action update adobe-oauth-playground/callback --param oauth_url https://runtime.adobe.io/api/v1/web/io-solutions/adobe-oauth-playground/oauth --param callback_url https://runtime.adobe.io/api/v1/web/io-solutions/adobe-oauth-playground/callback]

Create an integration on the Adobe I/O Console.

  • Create an integration-> Select Access an API-> Select services you wish to integrate with (e.g. Adobe Stock->OAuth Integration)
  • Provide the Default redirect URI as Callback action URL generated using command:
wsk action get adobe-oauth-playground/callback --url 

(e.g. https://runtime.adobe.io/api/v1/web/io-solutions/adobe-oauth-playground/callback)

Run It!

Browse to Oauth action URL generated using command:

wsk action get adobe-oauth-playground/oauth --url 

(e.g. https://runtime.adobe.io/api/v1/web/io-solutions/adobe-oauth-playground/oauth.html) Paste your credentials (which can be found in your I/O integration), and you are ready to start!

Note: Do not forget to append ".html" at the end of Oauth Action URL.

Author

License

MIT

adobe-ims-oauth-runtime-playground's People

Contributors

hirenoble avatar macdonst avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.