bauerj / paperless_app

An Android/iOS app for Paperless
https://play.google.com/store/apps/details?id=eu.bauerj.paperless_app
GNU General Public License v3.0
524 stars 45 forks source link

Support Header Authenication #91

Open anthr76 opened 2 years ago

anthr76 commented 2 years ago

Is your feature request related to a problem? Please describe. Logging into the app.

Describe the solution you'd like Supporting reverse proxy fronted header authentication.

Additional context My paperless instance is fronted by a authorization proxy that passes headers for authorization to paperless. For example reaching my instance would forward you to login then redirect you back to paperless providing paperless with it's username header.

Not sure if it's even possible but it would be great if the app can support this kind of login flow.

bauerj commented 2 years ago

Sorry, I don't quite understand what the app should do here. Should it open a website with your authentication page and acquire a cookie for API access?

anthr76 commented 2 years ago

Should it open a website with your authentication page and acquire a cookie for API access?

Yes I think that would be best course of action.

bauerj commented 2 years ago

Thank you, that makes it a bit clearer. Still, I'm missing some information required to implement this:

2600box commented 2 years ago

I think it is pretty common practice to use a reverse proxy with an x.509 certificate. If the app supported that, it would be great!

krylovsk commented 2 years ago

I'm using a secure access gateway in front of my paperless instance as well. For making this work the app needs to support redirect to the access gateway's authentication page and store the cookie that the access gateway will set.

deboy69 commented 2 years ago

Ill get on this band wagon for 2fa support for signon also. Currently using the iOS version.