mjehrhart / viewu

The Viewu App is a compact, user-friendly iOS application designed to integrate seamlessly with Frigate NVR systems.
https://www.viewu.app
GNU General Public License v3.0
46 stars 1 forks source link

Allow auth header on frigate connection #35

Open apocaliss92 opened 3 months ago

apocaliss92 commented 3 months ago

Hi? I just discovered this project and I cannot wait to try it out! Is there any way currently to allow to specify any header or authentication methods for the frigate connection?

I have my frigate exposed on internet behind an SSO provider and I would like to make this app work also outside of my network

Thanks!

mjehrhart commented 3 months ago

Hi. Glad you found this project and hopefully it works out for your use case. Right now, I do not have any auth header support in the app. I’m looking to pick back up the development of the app for the next rounds of updates. If you like, we can discuss a universal work flow using auth headers and implement it. Thoughts?

On Aug 4, 2024 at 11:58 AM, <apocaliss92 @.***)> wrote:

Hi? I just discovered this project and I cannot wait to try it out! Is there any way currently to allow to specify any header or authentication methods for the frigate connection?

I have my frigate exposed on internet behind an SSO provider and I would like to make this app work also outside of my network

Thanks!

— Reply to this email directly, view it on GitHub (https://github.com/mjehrhart/viewu/issues/35), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AXJNK67SFLQP6QMEJMLKCWLZPZ2TZAVCNFSM6AAAAABL7CDE3WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2DOMRVG4YTIOA). You are receiving this because you are subscribed to this thread.Message ID: @.***>

apocaliss92 commented 3 months ago

Sure thing! I'm not a super expert but I would say the minimum that would support most of the SSO, would be the basic authentication flow, this means to allow the client to be configured in such a way to send an "Authorization" header with each call to the NVR

Another point would be to enable cookies, this speeds up the SSO to authenticate each following request