From aa3bed6ff8ed645a7526977761b269832bdbaa1c Mon Sep 17 00:00:00 2001 From: DeniskaRediska Date: Wed, 23 Sep 2020 13:58:32 +0300 Subject: [PATCH] fix accounting requests --- .version | 2 +- CHANGELOG.md | 2 ++ authenticate/authenticate.go | 6 ++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.version b/.version index 860487c..37c2961 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -2.7.1 +2.7.2 diff --git a/CHANGELOG.md b/CHANGELOG.md index cc895df..c8c1aa0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## 2.7.2 +* fix accounting ## 2.7.1 * fix default local config ## 2.7.0 diff --git a/authenticate/authenticate.go b/authenticate/authenticate.go index d690f09..7eb40ea 100644 --- a/authenticate/authenticate.go +++ b/authenticate/authenticate.go @@ -1,6 +1,9 @@ package authenticate import ( + "strconv" + "time" + "github.com/integration-system/isp-lib/v2/config" "github.com/integration-system/isp-lib/v2/utils" log "github.com/integration-system/isp-log" @@ -12,8 +15,6 @@ import ( "isp-gate-service/log_code" "isp-gate-service/routing" "isp-gate-service/service/veritification" - "strconv" - "time" ) const ( @@ -134,6 +135,7 @@ func (v *verifiable) verifyAppToken() error { return createError("unauthorized", codes.Unauthenticated, "received unexpected application identity") } + v.appId = int32(applicationId) v.headers = verifiableHeaders return nil }