Comments (8)
Perfect thank you π
from photoprism-android-client.
Hey there Baptiste.
Is this a standard behavior for Authelia? I don't have it personally, but we've tested the redirect with another PhotoPrism Gallery user who has their library under Authelia.
from photoprism-android-client.
For now, I can suggest configuring Authelia to make redirects for your PhotoPrism library using HTTP codes in the 300 range. Redirects by 401 with Location
are not supported by the app's network stack, I can say it right away.
from photoprism-android-client.
I haven't altered the default response behavior of Authelia and it seems to respond with a 3XX code for GET
/ OPTION
requests per the documentation:
If I understand correctly, Authelia returns a 401 with the header WWW-Authenticate set, since it's a standard maybe the app could catch this?
I'm curious about the other user's setup!
from photoprism-android-client.
Hmm, I think I got what's wrong. You use PhotoPrism credentials along with Authelia while the one who tested this feature had their libarary running in a public mode to avoid double authentication. If you connect to a public library, the first request is GET, however, if there are credentials, it is POST. That's why Authelia responds differently.
Question out of curiosity: why would one want to have 2 authentications one by one for a photo library?
from photoprism-android-client.
Please, try connecting to the library with Authelia and PhotoPrism credentials in this build:
https://send.bitwarden.com/#_hYd9lj5D02iKrEoAUNrwg/YV-QviPYcFXbDxNcICmKyg
from photoprism-android-client.
Hmm, I think I got what's wrong. You use PhotoPrism credentials along with Authelia while the one who tested this feature had their libarary running in a public mode to avoid double authentication. If you connect to a public library, the first request is GET, however, if there are credentials, it is POST. That's why Authelia responds differently. Question out of curiosity: why would one want to have 2 authentications one by one for a photo library?
Good analysis! I'm indeed running an authenticated Photoprism instance mostly because I'm synchronizing pictures from my devices with an app that doesn't support Authelia and thus I have to bypass the 2nd factor for this specific route. I still want it to be password protected.
Also I'm waiting on these issues to be completed since it's imo the optimal setup photoprism/photoprism#782 / photoprism/photoprism#3943
I just tested the APK you sent me and it's working! Good job and thank you for you reactivity.
Tell me if you need any more test or information.
from photoprism-android-client.
Makes sense indeed π‘
Thank you for testing, the fix will be included into the next release. Until then, you can use the clone build if you are comfortable with it.
from photoprism-android-client.
Related Issues (20)
- Kotlin Exception on PhotoPrismMergedPhoto$File HOT 3
- Different views HOT 1
- Albums are sorted from newest to oldest HOT 1
- Android TV exit from app HOT 5
- Support for Auhtelia HOT 1
- Pinch-to-zoom doesn't work as expected
- Selecting an image after opening in the built in web browser makes the image disappear from screen HOT 4
- unconverted raw files are shown in the gallery HOT 6
- Downloading or sharing stuck HOT 2
- Add Chinese language HOT 1
- App ignores installed root CA certificate on device and connection fails HOT 3
- εε±ζΆε·₯ε ·ζ δΈζΎη€Ί HOT 1
- Can't connect to my library HOT 1
- Video-format is hardcoded, should be dynamic HOT 27
- Failed to load the preview HOT 4
- Scrollbar Behaviour HOT 7
- Add checkbox to search page for "Include Archive content" HOT 1
- Add possibility to Ignore self-signed certificate warning HOT 2
- Widget for Android
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photoprism-android-client.