Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature]: support for authenticated API calls #15

Open
LeoSpyke opened this issue Sep 6, 2024 · 2 comments
Open

[feature]: support for authenticated API calls #15

LeoSpyke opened this issue Sep 6, 2024 · 2 comments

Comments

@LeoSpyke
Copy link

LeoSpyke commented Sep 6, 2024

Starting from version 0.14.0, Frigate introduced the support for authenticated UI and API interactions, thus deprecating the old endpoint (exposed on port 5000).

Leaving such port open is a security flaw that now can be natively solved without relying on 3rd party tools (like Authelia or other proxies) for authentication but still, this tool does not support authenticated HTTP calls yet.

Anyway, I really appreciate what you are doing, it saved my life (and home) 💪

@OldTyT
Copy link
Owner

OldTyT commented Sep 6, 2024

Hi!
Thanks for the issue.
I researched and found out that authentication is probably still in development and has not reached its endpoint.
Because:

A web server is available on port 5000 with the following endpoints.

Currently, authorization works as follows:

  • We send a POST request to the /api/login endpoint with the data {"user": "USERNAME", "password": "PASSWORD"}
  • We receive data from the server in cookies:
    2024-09-06_13-11
  • Then, using the received token in cookies, we set it in headers and make a request
    image

It's too confusing(

A request to add HTTP digest authorization has been created - blakeblackshear/frigate#13297

Therefore, I suggest waiting a couple of months and seeing what will be changed.

@LeoSpyke

@OldTyT
Copy link
Owner

OldTyT commented Nov 9, 2024

Hurray! The description of the authorization API appeared in 0.15.0 beta 1. Docs
We are waiting...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants