[OBIE-790] 'invalid_grant' when requesting refresh token for HSBC - JIRA

'invalid_grant' when requesting refresh token for HSBC

Description

When I try and get a refresh token for HSBC in production I get and 'invalid_grant'. This is a blocking issue and is preventing us from using HSBC in production. Below are the request/response details from my logs:

2019-08-29 16:00:51.536 +01:00 [INF] Request:
2019-08-29 16:00:51.536 +01:00 [INF] Method: POST, RequestUri: 'https://private.api.hsbc.com/open-banking/v1.1/token', Version: 2.0, Content: System.Net.Http.FormUrlEncodedContent, Headers:
{
Accept: application/json
Authorization: Basic NzcwNWNkMWYtZmI3Ni00MTUyLWI2ZjUtNzFlZjk0ZmJjZTkxOmViNmViNDNmLTllOGQtNDU5Zi05ZDgwLWZlNTNjMGMyNTQ3OQ==
Content-Type: application/x-www-form-urlencoded
}
2019-08-29 16:00:51.541 +01:00 [INF] grant_type=refresh_token&refresh_token=d2296309-a9f0-4a08-bf8e-20f1bda9d76a
2019-08-29 16:00:51.888 +01:00 [INF] Response:
2019-08-29 16:00:51.889 +01:00 [INF] StatusCode: 403, ReasonPhrase: 'Forbidden', Version: 1.1, Content: System.Net.Http.HttpConnection+HttpConnectionResponseContent, Headers:
{
Server: nginx
Date: Thu, 29 Aug 2019 15:00:52 GMT
Connection: keep-alive
x-amzn-RequestId: cb3959a8-ca6d-11e9-8756-754134301e70
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=31536000; includeSubDomains
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Frame-Options: SAMEORIGIN
x-amz-apigw-id: fMFJpH8TjoEFtvg=
X-Content-Type-Options: nosniff
X-Amzn-Trace-Id: Root=1-5d67e8a4-e0841c71509c2a720683c345;Sampled=1
X-Cache: Error from cloudfront
Via: 1.1 c6f5d916fa4d92120e0a2a4d76ea9a18.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: MAN50-C1
X-Amz-Cf-Id: qXyFWWDYJMXR29t7pBD8FXHY1rAMqr4ZMfIhsdvUzy2-Tanzt3IeSQ==
Content-Type: application/json; charset=utf-8
Content-Length: 30
}
2019-08-29 16:00:51.900 +01:00 [INF] {"error_code":"invalid_grant"}

Technical Impact

None

Workaround

None

Resolution Notes

None

Impact Assessment

None

Status

Assignee

Unassigned

Reporter

Beejal Nagar

Reference

None

Service Desk Reference

OBSD-10593

ASPSP

Query Type

Read/Write

TPP Impact

Highest

OB Environment

Production

Business Impact Severity

None

Share

Yes