paperless_app icon indicating copy to clipboard operation
paperless_app copied to clipboard

Support Header Authenication

Open anthr76 opened this issue 2 years ago • 6 comments

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.

anthr76 avatar Jul 09 '22 20:07 anthr76

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?

bauerj avatar Jul 10 '22 17:07 bauerj

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.

anthr76 avatar Jul 11 '22 00:07 anthr76

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

  • How would the app know there is such a proxy?
  • Would the Paperless authentication still be used?
  • Does the session need to be re-authenticated regularly or will it stay logged in indefinitely?

bauerj avatar Jul 11 '22 14:07 bauerj

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!

2600box avatar Jul 14 '22 21:07 2600box

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.

krylovsk avatar Aug 14 '22 17:08 krylovsk

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

deboy69 avatar Aug 19 '22 15:08 deboy69