Skip to content

Commit

Permalink
Updated libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lomilar committed Jun 21, 2018
1 parent 95c1047 commit 5020856
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<ec-version>2.2.1</ec-version>
<ew-version>5.12.0</ew-version>
<ec-version>2.2.2</ec-version>
<ew-version>5.12.2</ew-version>
</properties>

<developers>
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/b-skyrepo/kbac.skyrepo.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,8 @@ var skyIdCommit = function() {
signatureSheet.push(EcIdentityManager.createSignature(60000, null, skyIdPem));
(this)["signatureSheet"] = signatureSheet;
var get = (skyrepoGet).call(this, saltedId, null, "schema.cassproject.org.kbac.0.2.EncryptedValue", null);
if (get == null)
error("User does not exist.", 404);
get = JSON.parse(EcAesCtr.decrypt((get)["payload"], skyIdSecretKey, saltedId));
if ((get)["token"] != token)
error("An error in synchronization has occurred. Please re-login and try again.", 403);
Expand Down Expand Up @@ -712,7 +714,11 @@ var skyIdLogin = function() {
signatureSheet.push(EcIdentityManager.createSignature(60000, null, skyIdPem));
(this)["signatureSheet"] = signatureSheet;
var get = (skyrepoGet).call(this, saltedId, null, "schema.cassproject.org.kbac.0.2.EncryptedValue", null);
if (get == null)
error("User does not exist.", 404);
get = JSON.parse(EcAesCtr.decrypt((get)["payload"], skyIdSecretKey, saltedId));
if ((get)["password"] != saltedPassword)
error("Invalid password.", 403);
(get)["token"] = randomString(20);
delete (get)["password"];
var encryptedPayload = new EcEncryptedValue();
Expand Down

0 comments on commit 5020856

Please sign in to comment.