GithubHelp home page GithubHelp logo

adobe / aio-app-actions-auth Goto Github PK

View Code? Open in Web Editor NEW
3.0 23.0 5.0 63 KB

Starter for setting up I/O Runtime actions in authentication flow

Home Page: https://www.adobe.io

License: Apache License 2.0

Makefile 23.61% JavaScript 76.39%
serverless nodejs opendev authentication ims adobe-io

aio-app-actions-auth's Introduction

Version Downloads/week Build Status License

actions-auth

Openwhisk Package for setting up actions within shared packages used in authentication flow.

Installing shared actions

For a quick setup use:

$ npm run deploy

This command sets up 2 packages in a user's namespace( system in the example below ):

$ wsk package get oauth --summary
  package /system/oauth
   action /system/oauth/login

$ wsk package get cache --summary
  package /system/cache
   action /system/cache/encrypt
   action /system/cache/persist
  • the oauth package contains the actions login, logout, success and tokens with no default parameters
  • the cache package contains the encrypt and persist actions

NOTE: These packages could be publicly available from a system package, so that other namespaces can reference/bind to them. This offers the flexibility to maintain the supporting actions in a single place, vs having them copied and installed in each namespace.

Logging in Users using an Authentication Sequence

The goal is to create an authentication flow that is composed of a sequence of actions:

  login -> encrypt -> persist (SET) -> redirect
  • login - uses actions-auth-passport action.
  • encrypt - uses ./action/encrypt.js to enable sequencing to the persist action (TBD: Will be renamed to format).
  • persist - uses auth-cache.
  • redirect - uses redirect.js from actions-auth-passport action. This action redirects the end-user to a confirmation page, after a successful login. The redirect URL can be controlled by either providing a default redirect_url to the login action, but it can also be overridden for special cases through the success_redirect parameters of the login action.

The user experience starts with the login action, which takes the end-user through the authentication UI of the corresponding provider. Once the login is successful the sequence executes all the actions, and at the end, the last action should redirect the user to a home page.

Contributing

Contributions are welcomed! Read the Contributing Guide for more information.

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.

aio-app-actions-auth's People

Contributors

amulyakashyap09 avatar dependabot[bot] avatar himavanth avatar meryllblanchet avatar sandeep-paliwal avatar shazron avatar vikaspandey121 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aio-app-actions-auth's Issues

There are some grammatical error in README.md File

Expected Behaviour

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

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.