Allow using a selfoss instance protected by http basic auth #142
Labels
No Label
Difficulty - Beginner friendly
Difficulty = Easy
Difficulty = Hard
Difficulty = Medium
Priority = CRITICAL
Priority = High
Priority = Low
Priority = Normal
Priority = Some day
Status - Fixed somewhere else
Status - No details provided
Status = Can't fix
Status = Duplicate
Status = Help wanted
Status = Invalid
Status = Need more details
Status = Taken
Status = Wontfix
Type - Selfoss works like this
Type = Bug
Type = Chore
Type = Enhancement
Type = Feature
Type = Question
Type = SELFOSS API ISSUE
Type = Tools
Type = UX/Design
Up For Grabs
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Louvorg/ReaderForSelfoss-multiplatform#142
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Prerequisites
CONTRIBUTING
guide ?Description
Allow using a selfoss instance protected by http basic auth.
Steps to Reproduce
Expected behavior: The android app attempts to connect, sending the appropriate basic auth header with it's HTTP(s) request.
Actual behavior: The URL for the instance is declared invalid. Connecting to the instance is not possible.
For those tempted to suggest I try to "has login" toggle, that is for attempting to use the Selfoss webapp-API login (as expected) rather than trying to use http basic authentication against the webserver.
Screenshots (optional)
...
Device
Hi @yareckon,
I'll look into making the
https://login:password@example.com
format valid for the login page.Having another toggle with two other inputs for the HTTP login and HTTP password would be too much code for something that would be simply doable via the url format.
Thanks for the report.
This should be available in the next release. It should be available in here in a few minutes, and on f-droid in some times.
Hi @AmineL , this is mostly working, and has been for months, thank you! I had an issue with this last week when I changed my password to have a number in it. I've read the code and see that you have used \D regex to match the username and password in the URL. \D won't match digits! Maybe you could try \w to match all word characters?
Hey @yareckon, thanks for the bug report.
The apk fixing this issue is available here