ruuvi / ruuvi.gateway_esp.c

Ruuvi Gateway ESP32 code
BSD 3-Clause "New" or "Revised" License
24 stars 15 forks source link

Close #1044: Add HTTP authentication method "API key" that does not prefix the key with the word "Token" #1046

Closed TheSomeMan closed 1 month ago

sonarcloud[bot] commented 1 month ago

Quality Gate Failed Quality Gate failed

Failed conditions
15.5% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

TheSomeMan commented 1 month ago

Thanks, please also update the docs with an example

Yes, I've updated the documentation.

TheSomeMan commented 1 month ago

@markoaamunkajo to test this, you can run the script ./ruuvi.gwui.html/scripts/http_server_auth.py, configure the gateway to send data to your computer 'http://:8000/record' and check HTTP header "Authorization" in the script console.

Firmware: https://github.com/ruuvi/ruuvi.gateway_esp.c/actions/runs/8999375063

markoaamunkajo commented 1 month ago

QA passed