europace / baufismart-kundenangaben-api

API zum Importieren von Kundenangaben in einen neuen Vorgang in BaufiSmart.
https://developer.europace.de
14 stars 4 forks source link

Authorization header (Credential, Signature, SignedHeaders, X-Amz-Date). #44

Closed 4yourfinance closed 3 years ago

4yourfinance commented 3 years ago

Hello! We got access token by documentation: https://github.com/europace/authorization-api

And by https://baufinanzierung.api.europace.de from the YAML file: https://github.com/europace/kundenangaben-api/blob/master/api-docs.yaml

We sent a request to https://baufinanzierung.api.europace.de by the GET method:

Headers: "Authorization": [access token got with https://api.europace.de/auth/access-token] Body:

   "kundenangaben": {..},
   "importMetadaten": {
        "datenkontext": "TEST_MODUES"
   }

And got 403 HTTP response code and this error:

{"message":"Authorization header requires 'Credential' parameter. Authorization header requires 'Signature' parameter. Authorization header requires 'SignedHeaders' parameter. Authorization header requires existence of either a 'X-Amz-Date' or a 'Date' header...

When we send data to kundenangaben https://baufinanzierung.api.europace.de/kundenangaben

We got the 401 response code, and no error more.

Please tell, where we can view information about these headers? How do we need to generate these? Or do we something wrong?

s-gurevich commented 3 years ago

Hi, few things I see in your question:

4yourfinance commented 3 years ago

Thank you! It is worked.