paulgessinger / swift-paperless

Native iOS app for interacting with a Paperless-ngx installation to manage documents
https://swift-paperless.gessinger.dev/
MIT License
355 stars 15 forks source link

Option to accept an access token instead of username/password #21

Open notself opened 1 year ago

notself commented 1 year ago

Is it possible to accept an access token directly instead of a username and password?

This would allow the app to work with the following Paperless setup, which I use:

With this setup, it means that:

I see the app already allows to add custom headers but at the moment, even if we manually create an Authorization: Token xxxx header, the login flow is still there.

paulgessinger commented 1 year ago

Hey @notself, yeah that's a good idea actually. In the end I really only save the token anyway, so one could just bypass the user/pw login flow by setting the token directly.

I'll look into this!

notself commented 1 year ago

Amazing. Can't wait to try this app!