mirror of
https://github.com/TanelOrumaa/Estonian-ID-card-mobile-authenticator-POC.git
synced 2024-12-22 12:30:16 +02:00
web-eid.js is now fetched from git, fixed a small problem related to authentication
This commit is contained in:
parent
8b78ddf51a
commit
04933f2705
3
demoBackend/.gitignore
vendored
3
demoBackend/.gitignore
vendored
@ -31,3 +31,6 @@ build/
|
|||||||
|
|
||||||
### VS Code ###
|
### VS Code ###
|
||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
|
### web-eid.js ###
|
||||||
|
!**src/demo-website/src/web-eid.js
|
38
demoBackend/src/demo-website/package-lock.json
generated
38
demoBackend/src/demo-website/package-lock.json
generated
@ -8,7 +8,7 @@
|
|||||||
"name": "demo-website",
|
"name": "demo-website",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@web-eid/web-eid-library": "../../../../web-eid.js/",
|
"@web-eid/web-eid-library": "github:TanelOrumaa/web-eid.js#main",
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.6.5",
|
||||||
"vue": "^3.0.0",
|
"vue": "^3.0.0",
|
||||||
"vue-cookie-next": "^1.3.0",
|
"vue-cookie-next": "^1.3.0",
|
||||||
@ -32,6 +32,7 @@
|
|||||||
"../../../../web-eid.js": {
|
"../../../../web-eid.js": {
|
||||||
"name": "@web-eid/web-eid-library",
|
"name": "@web-eid/web-eid-library",
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
|
"extraneous": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": "^16.11.11"
|
"@types/node": "^16.11.11"
|
||||||
@ -1922,10 +1923,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "16.11.10",
|
"version": "16.11.12",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.10.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.12.tgz",
|
||||||
"integrity": "sha512-3aRnHa1KlOEEhJ6+CvyHKK5vE9BcLGjtUpwvqYLRvYNQKMfabu3BwfJaA/SLW8dxe28LsNDjtHwePTuzn3gmOA==",
|
"integrity": "sha512-+2Iggwg7PxoO5Kyhvsq9VarmPbIelXP070HMImEpbtGCoyWNINQj4wzjbQCXzdHTRXnqufutJb5KAURZANNBAw=="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"node_modules/@types/normalize-package-data": {
|
"node_modules/@types/normalize-package-data": {
|
||||||
"version": "2.4.1",
|
"version": "2.4.1",
|
||||||
@ -2643,8 +2643,12 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@web-eid/web-eid-library": {
|
"node_modules/@web-eid/web-eid-library": {
|
||||||
"resolved": "../../../../web-eid.js",
|
"version": "1.0.1",
|
||||||
"link": true
|
"resolved": "git+ssh://git@github.com/TanelOrumaa/web-eid.js.git#b9c6f50c78a39b444d5df308826cd3f3476233d1",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@types/node": "^16.11.11"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@webassemblyjs/ast": {
|
"node_modules/@webassemblyjs/ast": {
|
||||||
"version": "1.9.0",
|
"version": "1.9.0",
|
||||||
@ -16598,10 +16602,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "16.11.10",
|
"version": "16.11.12",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.10.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.12.tgz",
|
||||||
"integrity": "sha512-3aRnHa1KlOEEhJ6+CvyHKK5vE9BcLGjtUpwvqYLRvYNQKMfabu3BwfJaA/SLW8dxe28LsNDjtHwePTuzn3gmOA==",
|
"integrity": "sha512-+2Iggwg7PxoO5Kyhvsq9VarmPbIelXP070HMImEpbtGCoyWNINQj4wzjbQCXzdHTRXnqufutJb5KAURZANNBAw=="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"@types/normalize-package-data": {
|
"@types/normalize-package-data": {
|
||||||
"version": "2.4.1",
|
"version": "2.4.1",
|
||||||
@ -17209,17 +17212,10 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@web-eid/web-eid-library": {
|
"@web-eid/web-eid-library": {
|
||||||
"version": "file:../../../../web-eid.js",
|
"version": "git+ssh://git@github.com/TanelOrumaa/web-eid.js.git#b9c6f50c78a39b444d5df308826cd3f3476233d1",
|
||||||
|
"from": "@web-eid/web-eid-library@github:TanelOrumaa/web-eid.js#main",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/node": "^16.11.11",
|
"@types/node": "^16.11.11"
|
||||||
"@typescript-eslint/eslint-plugin": "^4.31.2",
|
|
||||||
"@typescript-eslint/parser": "^4.31.2",
|
|
||||||
"eslint": "^7.25.0",
|
|
||||||
"rimraf": "^3.0.2",
|
|
||||||
"rollup": "^2.26.11",
|
|
||||||
"rollup-plugin-polyfill-node": "^0.8.0",
|
|
||||||
"rollup-plugin-terser": "^5.3.1",
|
|
||||||
"typescript": "^3.8.3"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@webassemblyjs/ast": {
|
"@webassemblyjs/ast": {
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"lint": "vue-cli-service lint"
|
"lint": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@web-eid/web-eid-library": "../../../../web-eid.js/",
|
"@web-eid/web-eid-library": "github:TanelOrumaa/web-eid.js#main",
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.6.5",
|
||||||
"vue": "^3.0.0",
|
"vue": "^3.0.0",
|
||||||
"vue-cookie-next": "^1.3.0",
|
"vue-cookie-next": "^1.3.0",
|
||||||
|
@ -8673,9 +8673,6 @@ class WebExtensionService {
|
|||||||
if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
console.log(res.statusCode);
|
console.log(res.statusCode);
|
||||||
window.postMessage({ action: this.getRelevantSuccessAction(message) }, location.origin);
|
window.postMessage({ action: this.getRelevantSuccessAction(message) }, location.origin);
|
||||||
res.on("data", (data) => {
|
|
||||||
console.log("HERE WE GOOO:" + data);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.removeFromQueue(message.action);
|
this.removeFromQueue(message.action);
|
||||||
|
@ -58,7 +58,7 @@ class SessionManager {
|
|||||||
// Fallback to when for some reason session object doesn't have sessionId attached.
|
// Fallback to when for some reason session object doesn't have sessionId attached.
|
||||||
sessionId = getSessionId(headers)
|
sessionId = getSessionId(headers)
|
||||||
}
|
}
|
||||||
sessionRegistry[sessionId]!!.roles = arrayListOf()
|
sessionRegistry[sessionId]?.roles = arrayListOf()
|
||||||
val authentication = UsernamePasswordAuthenticationToken(null, sessionId, listOf())
|
val authentication = UsernamePasswordAuthenticationToken(null, sessionId, listOf())
|
||||||
securityContext.authentication = authentication
|
securityContext.authentication = authentication
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user