{"_id":"@adobe/aio-app-actions-auth","_rev":"130-95a4cdb8ce4390f95ae890540f1091c6","name":"@adobe/aio-app-actions-auth","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@adobe/aio-app-actions-auth","version":"1.0.0","author":{"name":"Dragos Dascalita Haut","email":"ddascal@adobe.com"},"_id":"@adobe/aio-app-actions-auth@1.0.0","maintainers":[{"name":"msavin99","email":"savin.mircea@gmail.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"msagolj","email":"msagolj@adobe.com"},{"name":"richardhand","email":"pid90611@adobe.com"},{"name":"jckautzmann","email":"jkautzma@adobe.com"},{"name":"andreea_dracea","email":"andreeadracea@yahoo.com"},{"name":"bpauli","email":"mail@bpauli.de"},{"name":"vladbailescu","email":"vlad@bailescu.ro"},{"name":"mfrisbey","email":"mark_f79@hotmail.com"},{"name":"himar","email":"himar@adobe.com"},{"name":"bbythewa","email":"bbythewa@adobe.com"},{"name":"sanketra","email":"sanketra@gmail.com"},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"fmeschbe","email":"fmeschbe@adobe.com"},{"name":"jianliao79","email":"jian.liao@gmail.com"},{"name":"ibaratz","email":"ibaratz@adobe.com"},{"name":"conyu","email":"conyu@adobe.com"},{"name":"alexkli","email":"alexander@klimetschek.de"},{"name":"meryllblanchet","email":"meryll@adobeio.com"},{"name":"moritzraho","email":"raho.mr@gmail.com"},{"name":"justinedelson","email":"justin@justinedelson.com"},{"name":"icaraps","email":"icaraps@hotmail.com"},{"name":"dkstevekwak","email":"steveguac@gmail.com"},{"name":"ashryan","email":"sayhi@ashryan.io"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"praschetan","email":"cprasad@adobe.com"},{"name":"nporter-adbe","email":"nporter@adobe.com"},{"name":"aaronius","email":"aaron@aaronhardy.com"},{"name":"hirenoble","email":"hirenanandshah@outlook.com"},{"name":"benjamind","email":"ben@delarre.net"},{"name":"yoshikinoko","email":"yoshikinoko@gmail.com"},{"name":"goya","email":"brettrudd@gmail.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"alexmirea","email":"alexandru.daniel.mirea@gmail.com"},{"name":"purplecabbage","email":"purplecabbage@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"kerrishotts","email":"kerrishotts@gmail.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"macdonst","email":"simon.macdonald@gmail.com"},{"name":"shazron","email":"shazron@gmail.com"},{"name":"abhinavsaraswat","email":"absarasw@adobe.com"},{"name":"aemsites","email":"meyer@adobe.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"jfkhoury","email":"jfkhoury@gmail.com"},{"name":"jileesh","email":"jileeshsathyan@gmail.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"asteed","email":"andrewsteed@gmail.com"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"adobe-activation","email":"Engineering-Admins@adobe.com"},{"name":"target-admin","email":"ciocanu@adobe.com"},{"name":"adobe-behance","email":"sedunn@adobe.com"},{"name":"stevegill","email":"stevengill97@gmail.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"filmaj","email":"maj.fil@gmail.com"}],"homepage":"https://github.com/adobe/aio-app-actions-auth","dist":{"shasum":"d4e16df1955df6ce2b5310343f8f749c22006fba","tarball":"https://registry.npmjs.org/@adobe/aio-app-actions-auth/-/aio-app-actions-auth-1.0.0.tgz","fileCount":22,"integrity":"sha512-IQL7qKLrhuBu84ae1xbAmd2CwC5NVVnQeLA1pq3eiPd6oo5792Swufc+hLPlt/nsrScBwpPJDQkp1+Vnx5BPbQ==","signatures":[{"sig":"MEYCIQDzj7z0oZqlGCp1U+xAed13M2RiV3TA8FejH8aKAS0/ngIhANSCQJnia6P8rbpA2tWCTKCxJmDcM6O7MFURo0RhPgQN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43242,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1v4YCRA9TVsSAnZWagAAK10P/25vjnF0zubBjn+z4+Nx\nz3o8iY4oAst7F1Vwqi6G0okQDgeq6MexXK19PCOdq+WUZuaX2fVf/O0CECST\neGLxZzsyJhZ2rDGTc9jXT1g/Wq0bbS2+bs7yqvRQjE3+LQfpYjpbPv+tNG1w\nA7+HP1xMcxCuHrNykrOb7ze/hUlRyWbIsWPUYmARenLLWNSgztEkQUmNX9yM\nmT0tXTaPzDakDwBql2plj3PLSMf0FbIX6cxnIoAcWFeuCVIvSQpbHxjCR7uM\nF5ELCB4qvSDYgOI7zKL49wUZWugw2NhBmWtWoTd5rWf0KmluPzOXYW0xRBwY\nn/8HhSy8RVSHOfrD8kki9yrjenYVJ1PGa34gmHxqJFDcqv3ILmYRKYMtma9B\nQc0uwOWtflmK2e03/TUR0OTBvL/aVhX3z7reQ6RNS+G9LfKiAYgEJwFIZaS0\n2tQWsAU5D7c9eMM0eNvjalaiozKM470tfImwV59ijuTS8b1qwIuWteXi22j4\nhBFhFW+PFK2+PF1u7ezm+GiiSPLOavta1x/4LA4RDksvtOnXmUH3/kLLTepq\nS/mZvsCpD8+bN/4qhycCkVDUKGrXZpDOmzRDLdKGmX50EfFJnxOdLyuM2B5A\nG03wCoayRmTHTx8RQBW8Trfs75xhSAkns6qA2rn8Ney1+fXfoLGiXn6BZphx\na1G3\r\n=p3AV\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["default","jest-junit"],"collectCoverage":true,"testEnvironment":"node","testPathIgnorePatterns":["<rootDir>/tests/fixtures/"],"coveragePathIgnorePatterns":["<rootDir>/tests/fixtures/"],"setupTestFrameworkScriptFile":"./jest.setup.js"},"gitHead":"d127e326614446b03dc2d112d8c876b440604c8a","scripts":{"lint":"eslint ./action/*.js ./action/tokens/*.js --ignore-pattern *-dist.js","test":"npm run lint && jest --ci","deploy":"make install","postinstall":"cd action && npm install"},"_npmUser":{"name":"himar","email":"himar@adobe.com"},"_npmVersion":"6.4.1","description":"Deploys the auth actions.","directories":{},"_nodeVersion":"10.13.0","dependencies":{"@adobe/aio-app-auth-cache":"^1.0.1","@adobe/aio-app-actions-jwt-ims":"^1.0.0","@adobe/aio-app-actions-auth-passport":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^13.3.0","jest":"^23.0.1","mocha":"^6.0.2","sinon":"^7.3.1","dotenv":"^7.0.0","eslint":"^5.14.1","js-yaml":"^3.12.2","standard":"^12.0.1","jest-junit":"^5.0.0","babel-eslint":"^10.0.1","eslint-plugin-jest":"^23.0.2","eslint-plugin-node":"^8.0.1","eslint-plugin-import":"^2.16.0","eslint-plugin-promise":"^4.0.1","eslint-config-standard":"^12.0.0","eslint-plugin-standard":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aio-app-actions-auth_1.0.0_1572943819160_0.4618246806386772","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-11-05T08:50:18.939Z","modified":"2026-10-01T01:31:58.893Z","1.0.0":"2019-11-05T08:50:19.356Z"},"author":{"name":"Dragos Dascalita Haut","email":"ddascal@adobe.com"},"homepage":"https://github.com/adobe/aio-app-actions-auth","description":"Deploys the auth actions.","maintainers":[{"email":"mabecker@adobe.com","name":"marbec"},{"email":"tripod@bocanegra.ch","name":"tripod"},{"email":"garthdb@gmail.com","name":"garthdb"},{"email":"lazdnet@gmail.com","name":"lazd"},{"email":"grp-opensourceoffice@adobe.com","name":"adobe-admin"},{"email":"patrickfulton@gmail.com","name":"patrickfulton"},{"email":"lars@trieloff.net","name":"trieloff"},{"email":"krisnye@gmail.com","name":"krisnye"},{"email":"dcpfsdk@adobe.com","name":"dcpfsdk"},{"email":"natebaldwindesign@gmail.com","name":"natebaldwin"},{"email":"devongovett@gmail.com","name":"devongovett"},{"email":"danniintheus@gmail.com","name":"aspro83"},{"email":"symanovi@adobe.com","name":"symanovi"},{"email":"dominique.pfister@gmail.com","name":"dpfister"},{"email":"sg@adobe.com","name":"stefan-guggisberg"},{"email":"npm@rofe.com","name":"rofe"},{"email":"kptdobe@gmail.com","name":"kptdobe"},{"email":"halls@adobe.com","name":"adobehalls"},{"email":"bradjohn@adobe.com","name":"fullcolorcoder"},{"email":"djaeggi@adobe.com","name":"djaeggi"},{"email":"dylandepass@gmail.com","name":"dylandepass"},{"email":"mhaack@adobe.com","name":"mhaack"},{"email":"amol@adobe.com","name":"amol-anand"},{"email":"stopp@adobe.com","name":"stopp-adobe"},{"email":"namarora@adobe.com","name":"namarora"},{"email":"doten@adobe.com","name":"doten"},{"email":"schmidt@adobe.com","name":"duh_schmidt"},{"email":"astha.bhargava23@gmail.com","name":"asthabh23"},{"email":"aljoseph@adobe.com","name":"aljoseph"},{"email":"zouhir.dahbi@outlook.com","name":"zdahbi"},{"email":"tuicu@adobe.com","name":"tuicu"},{"email":"fmeschbe@adobe.com","name":"fmeschbe"}],"readme":"[![Build Status](https://travis-ci.com/adobe/adobeio-cna-actions-auth.svg?branch=master)](https://travis-ci.com/adobe/adobeio-cna-actions-auth)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n\n# actions-auth\nOpenwhisk Package for setting up actions used in authentication flow.\n\n## Logging in Users using an Authentication Sequence\n\nThe goal is to create an authentication flow that is composed from a sequence of actions:\n\n```\n  login -> encrypt -> persist (SET) -> register_my_webhook (not implemented here) -> redirect\n```\n\n* `login` - uses [actions-auth-passport](https://git.corp.adobe.com/CNA/actions-auth-passport) action.\n* `encrypt` - uses [./action/encrypt.js](action/encrypt.js) to enable sequencing to the persist action (TBD: Will be renamed to `format`).\n* `persist` - uses [auth-cache-dynamodb](https://git.corp.adobe.com/CNA/auth-cache-dynamodb).\n* `redirect` - uses `redirect.js` from [actions-auth-passport](https://git.corp.adobe.com/CNA/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.\n\nThe 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.\n\n### Installing supporting actions\n\nFor a quick setup use:\n\n```bash\n$ npm run deploy\n```\n\nThis command sets up 2 packages in a user's namespace( `system` in the example bellow ):\n\n```bash\n$ wsk package get oauth --summary\n  package /system/oauth\n   action /system/oauth/login\n\n$ wsk package get cache --summary\n  package /system/cache\n   action /system/cache/encrypt\n   action /system/cache/persist\n```\n\n* the `oauth` package contains the `login` action with no default parameters;\n* the `cache` package contains the `encrypt` and `persist` actions\n\n> NOTE: These packages could be publicly available from a `system` package,\nso that other namespaces can reference/bind to them. This offers the flexibility to\nmaintain the supporting actions in a single place, vs having them copied and installed\nin each namespace.\n\n### Configuring Adobe as an authentication provider\n\n```bash\n$ CLIENT_ID=AAA CLIENT_SECRET=BBB SCOPES=openid,AdobeID make adobe-oauth\n```\n\nThis command uses `/system/oauth/login` to create a package binding,\nconfiguring the credentials via default parameters. Then it creates the final action as a sequence ( `login -> encrypt -> persist`). To make for a nicer URI, the sequence action is placed in its own package so that it's presented to the end users as: `/api/v1/web/guest/adobe/authenticate`.\n\n## Retrieving the persisted info\n\nUse the same `persist` action used during authentication to retrieve the information. B/c the information is encrypted with Openwhisk Namespace API-KEY it can only be decrypted by actions within the same namespace. The API-KEY belonging to the namespace is injected by Openwhisk as an environment variable at invocation time.\n\n```\npersist (GET) -> decrypt\n```\n* `persist` is the same action used during Authentication\n\n### Contributing\n\nContributions are welcomed! Read the [Contributing Guide](./.github/CONTRIBUTING.md) for more information.\n\n### Licensing\n\nThis project is licensed under the Apache V2 License. See [LICENSE](LICENSE) for more information.\n","readmeFilename":"README.md"}