Commit d86a12a6 authored by Evgeniy Zaitsev's avatar Evgeniy Zaitsev
Browse files

v0.0.10

parent 6066db22
......@@ -7,6 +7,7 @@ function * checkToken(next) {
const signature = this.checkHeader('x-lvis-signature').notBlank().value;
this.logger.log(__filename, 'headers:', JSON.stringify({salt, signature}));
this.logger.log(__filename, 'body:', JSON.stringify(this.request.body));
this.throwResponseErrorIfNeed(this.errors);
......@@ -16,7 +17,11 @@ function * checkToken(next) {
this.logger.log(__filename, '\n', this.request.path, '\n', this.request.querystring, '\n', reqBody);
const signeableContent = this.request.path + querystring + reqBody;
const privateSignature = sha1(this.config.accessToken + signeableContent + salt);
const str = this.config.accessToken + signeableContent + salt;
this.logger.log(__filename, 'sa1 from str:', str);
const privateSignature = sha1(str);
this.logger.log(__filename, 'private signature:', privateSignature);
......
{
"name": "service-sdk",
"version": "0.0.9",
"version": "0.0.10",
"private": true,
"description": "Service SDK for LViS",
"keywords": [],
......
......@@ -27,7 +27,6 @@ function * getEvent() {
return;
}
const tabs = yield this.config.eventTabsCallback(this.state.instance, this.state.project, this.state.eventId);
tabs.forEach(tab => Object.assign(tab, {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment