skrashevich/double-take

[FEAT] Add Bearer tokens to URL requests for API

greghesp opened this issue · 2 comments

Is your feature request related to a problem? Please describe.

When using the /recognize API, you pass in a URL. This URL only works if the endpoint has no authorisation. For Home Assistant, however, their API requires a bearer token for every request

Describe the solution you'd like
Add an auth section to the camera config so that any request to the recognize endpoint uses the bearer token needed

Example:

# camera settings (default: shown below)
cameras:
  front-door:
    recognize:
      authorization: "Bearer abc123"

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

This issue was closed because it has been stalled for 5 days with no activity.