From 0ec2db0785daadd08c6c2e4690794b0d5869286c Mon Sep 17 00:00:00 2001 From: Kelvin Wang Date: Mon, 9 Sep 2019 16:20:23 -0400 Subject: [PATCH] fix(notification/endpoint): http bearer token --- notification/endpoint/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notification/endpoint/http.go b/notification/endpoint/http.go index c80264fc6d..bfb530cf8f 100644 --- a/notification/endpoint/http.go +++ b/notification/endpoint/http.go @@ -111,7 +111,7 @@ func (s HTTP) Valid() error { Msg: "invalid http username/password for basic auth", } } - if s.AuthMethod == "bearer" && s.Token.Key != httpTokenSuffix { + if s.AuthMethod == "bearer" && s.Token.Key != s.ID.String()+httpTokenSuffix { return &influxdb.Error{ Code: influxdb.EInvalid, Msg: "invalid http token for bearer auth",