source-cooperative / data.source.coop

Source Cooperative Data Proxy
https://data.source.coop
MIT License
13 stars 0 forks source link

[Bug] Calls to Source Cooperative API call unimplemented route when empty AWS_ACCESS_KEY_ID is provided #5

Open kbgg opened 3 weeks ago

kbgg commented 3 weeks ago

Description of Bug:

Authentication calls to the Source Cooperative API call an unimplemented route when an empty AWS_ACCESS_KEY_ID is provided to the data proxy.

Steps to Reproduce:

Expected Behavior:

Authentication method does not call the {$SOURCE_API_URL}/api/v1/api-keys/{API_KEY}/auth endpoint as we already know the user is making an unauthenticated request.

Actual Behavior:

Calls are made to the {$SOURCE_API_URL}/api/v1/api-keys/auth endpoint since the reqwest library transforms the request path from /api/v1/api-keys//auth to /api/v1/api-keys/auth. These requests cause a 501 - Not Implemented error on the Source Cooperative Frontend & API

Additional Context: image