Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
Scope and release
Browse files Browse the repository at this point in the history
  • Loading branch information
Himavanth committed Nov 5, 2019
1 parent d5db55d commit d127e32
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
24 changes: 12 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,35 @@ JWTAUTH_SEQ_NAME ?= $(AUTH_SEQ_PACKAGE)/jwtauthenticate

.PHONY: create-oauth-package
create-oauth-package:
npm --prefix ./node_modules/actions-auth-passport/ install
npm --prefix ./node_modules/actions-auth-passport/ run-script prepublish
npm --prefix ./node_modules/@adobe/aio-app-actions-auth-passport/ install
npm --prefix ./node_modules/@adobe/aio-app-actions-auth-passport/ run-script prepublish
wsk package get $(OAUTH_PACKAGE_NAME) --summary || wsk package create $(OAUTH_PACKAGE_NAME) --shared yes
wsk action update $(OAUTH_PACKAGE_NAME)/login ./node_modules/actions-auth-passport/actions-auth-passport-0.1.0.js
wsk action update $(OAUTH_PACKAGE_NAME)/success ./node_modules/actions-auth-passport/src/action/redirect.js --main redirect
wsk action update $(OAUTH_PACKAGE_NAME)/login ./node_modules/@adobe/aio-app-actions-auth-passport/aio-app-auth-passport.js
wsk action update $(OAUTH_PACKAGE_NAME)/success ./node_modules/@adobe/aio-app-actions-auth-passport/src/action/redirect.js --main redirect

.PHONY: create-cache-package
create-cache-package:
npm --prefix ./node_modules/auth-cache-dynamodb/ install
npm --prefix ./node_modules/auth-cache-dynamodb/ run-script prepublish
npm --prefix ./node_modules/@adobe/aio-app-auth-cache/ install
npm --prefix ./node_modules/@adobe/aio-app-auth-cache/ run-script prepublish
wsk package get $(CACHE_PACKAGE_NAME) --summary || wsk package create $(CACHE_PACKAGE_NAME) --shared yes
ifdef AWS_SESSION_TOKEN
wsk action update $(CACHE_PACKAGE_NAME)/persist ./node_modules/auth-cache-dynamodb/dist/main.js --main module.exports.default --param accessKeyId $(AWS_ACCESS_KEY_ID) --param secretAccessKey $(AWS_SECRET_ACCESS_KEY) --param sessionToken $(AWS_SESSION_TOKEN)
wsk action update $(CACHE_PACKAGE_NAME)/persist ./node_modules/@adobe/aio-app-auth-cache/dist/main.js --main module.exports.default --param accessKeyId $(AWS_ACCESS_KEY_ID) --param secretAccessKey $(AWS_SECRET_ACCESS_KEY) --param sessionToken $(AWS_SESSION_TOKEN)
else
ifdef AWS_SECRET_ACCESS_KEY
wsk action update $(CACHE_PACKAGE_NAME)/persist ./node_modules/auth-cache-dynamodb/dist/main.js --main module.exports.default --param accessKeyId $(AWS_ACCESS_KEY_ID) --param secretAccessKey $(AWS_SECRET_ACCESS_KEY)
wsk action update $(CACHE_PACKAGE_NAME)/persist ./node_modules/@adobe/aio-app-auth-cache/dist/main.js --main module.exports.default --param accessKeyId $(AWS_ACCESS_KEY_ID) --param secretAccessKey $(AWS_SECRET_ACCESS_KEY)
else
wsk action update $(CACHE_PACKAGE_NAME)/persist ./node_modules/auth-cache-dynamodb/dist/main.js --main module.exports.default
wsk action update $(CACHE_PACKAGE_NAME)/persist ./node_modules/@adobe/aio-app-auth-cache/dist/main.js --main module.exports.default
endif
endif
#TODO This should be removed or renamed at the very least
wsk action update $(CACHE_PACKAGE_NAME)/encrypt ./action/encrypt.js

.PHONY: create-jwt-package
create-jwt-package:
npm --prefix ./node_modules/actions-jwt-ims/ install
npm --prefix ./node_modules/actions-jwt-ims/ run-script prepublish
npm --prefix ./node_modules/@adobe/aio-app-actions-jwt-ims/ install
npm --prefix ./node_modules/@adobe/aio-app-actions-jwt-ims/ run-script prepublish
wsk package get $(OAUTH_PACKAGE_NAME) --summary || wsk package create $(OAUTH_PACKAGE_NAME) --shared yes
wsk action update $(OAUTH_PACKAGE_NAME)/jwtauth ./node_modules/actions-jwt-ims/dist/main.js --main module.exports.default
wsk action update $(OAUTH_PACKAGE_NAME)/jwtauth ./node_modules/@adobe/aio-app-actions-jwt-ims/dist/main.js --main module.exports.default

.PHONY: create-helper-actions
create-helper-actions:
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"name": "actions-auth",
"version": "0.1.0",
"name": "@adobe/aio-app-actions-auth",
"version": "1.0.0",
"description": "Deploys the auth actions.",
"author": "Dragos Dascalita Haut <ddascal@adobe.com>",
"homepage": "https://github.com/adobe/aio-app-actions-auth",
"scripts": {
"postinstall": "cd action && npm install",
"test": "npm run lint && jest --ci",
"lint": "eslint ./action/*.js ./action/tokens/*.js --ignore-pattern *-dist.js",
"deploy": "make install"
},
"dependencies": {
"actions-auth-passport": "git+https://github.com/adobe/adobeio-cna-actions-auth-passport.git",
"actions-jwt-ims": "git+https://github.com/adobe/adobeio-cna-actions-jwt-ims.git",
"auth-cache-dynamodb": "git+https://github.com/adobe/adobeio-cna-auth-cache-dynamodb.git"
"@adobe/aio-app-actions-auth-passport": "^1.0.0",
"@adobe/aio-app-actions-jwt-ims": "^1.0.0",
"@adobe/aio-app-auth-cache": "^1.0.1"
},
"devDependencies": {
"babel-eslint": "^10.0.1",
Expand Down

0 comments on commit d127e32

Please sign in to comment.