Merge pull request #15075 from influxdata/fix_http_endpoint
fix(notification/endpoint): http bearer tokenpull/15078/head
commit
3c87dc027f
|
@ -111,7 +111,7 @@ func (s HTTP) Valid() error {
|
||||||
Msg: "invalid http username/password for basic auth",
|
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{
|
return &influxdb.Error{
|
||||||
Code: influxdb.EInvalid,
|
Code: influxdb.EInvalid,
|
||||||
Msg: "invalid http token for bearer auth",
|
Msg: "invalid http token for bearer auth",
|
||||||
|
|
Loading…
Reference in New Issue