Skip to content

Commit 9cdaabe

Browse files
authored
0.6.6 (#161)
* 0.6.6 initial commit * update deps * update deps * fido2 wip * fido2 wip * wip fido * wip fido2 * fido wip * improve saml * wip fido * update packages * wip * update deps * update deps * add output to fido spa sample * fix vue-vite organization * wip * wip cypress * add loading to logout * wip * wip cypress * 0.6.6 * 0.6.6 sonar fix * 0.6.6 sonar fix * 0.6.6 sonar fix
1 parent 2bb132c commit 9cdaabe

File tree

140 files changed

+4205
-2380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+4205
-2380
lines changed

.github/workflows/manual-gcp-vue-vite.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
description: 'The environment (uat, prod)'
1616
default: 'uat'
1717
required: true
18+
appname:
19+
description: 'Application Name (web-template, etc.)'
20+
default: 'web-template'
21+
required: true
1822

1923
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
2024
jobs:
@@ -27,7 +31,7 @@ jobs:
2731
matrix:
2832
node: [ '14' ]
2933

30-
name: Deploying js-web/vue-vite - ${{ github.event.inputs.environment }}... Using Node ${{ matrix.node }}
34+
name: Deploying To GCP Storage - ${{ github.event.inputs.appname }} ${{ github.event.inputs.environment }} Using Node ${{ matrix.node }}
3135
# Steps represent a sequence of tasks that will be executed as part of the job
3236
steps:
3337
- uses: google-github-actions/setup-gcloud@master
@@ -61,5 +65,6 @@ jobs:
6165
echo "CI: $CI"
6266
echo "Branch: ${GITHUB_REF##*/}"
6367
echo "Environment: ${{ github.event.inputs.environment }}"
68+
echo "App Name: ${{ github.event.inputs.appname }}"
6469
cd js-web/vue-vite
65-
./deploy.sh ${{ github.event.inputs.environment }}
70+
./deploy.sh ${{ github.event.inputs.environment }} ${{ github.event.inputs.appname }}

.github/workflows/manual-gh-pages.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919
description: 'The environment (uat, production)'
2020
default: 'uat'
2121
required: true
22+
appname:
23+
description: 'Application Name (web-template, etc.)'
24+
default: 'web-template'
25+
required: true
2226

2327
defaults:
2428
run:

@es-labs/esm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@es-labs/esm",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"author": "Aaron Gong",
55
"license": "MIT",
66
"repository": {

@es-labs/esm/saml.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

@es-labs/esm/util.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ function downloadData(content, filename, type = 'text/csv;charset=utf-8;') {
99
// In FF link must be added to DOM to be clicked
1010
const link = document.createElement('a')
1111
link.href = window.URL.createObjectURL(blob)
12+
// link.setAttribute('href', 'data;text/csv;charset=utf-8,' + encodeURIComponent(SOME_CSV_DATA)) // previous way of doing
1213
link.setAttribute('download', filename)
1314
document.body.appendChild(link)
1415
link.click() // IE: "Access is denied"; see: https://connect.microsoft.com/IE/feedback/details/797361/ie-10-treats-blob-url-as-cross-origin-and-denies-access

@es-labs/node/auth/index.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,8 @@ const login = async (req, res) => {
208208
const id = user[AUTH_USER_FIELD_ID_FOR_JWT]
209209
if (!id) return res.status(401).json({ message: 'Authorization Format Error' })
210210
if (USE_OTP) {
211-
//NOSONAR
212-
// if (USE_OTP === 'SMS') {
213-
// // Generate PIN
214-
// const pin = (Math.floor(Math.random() * (999999 - 0 + 1)) + 0).toString().padStart(6, "0")
215-
// const ts = new Date() // utc?
216-
// // update pin where ts > ?
217-
// // set user SMS & send it
218-
// }
211+
// Currently supports only Google Authenticator
212+
// Fido2 can be added in future
219213
return res.status(200).json({ otp: id })
220214
}
221215
const tokens = await createToken(user) // 5 minute expire for login

0 commit comments

Comments
 (0)