YunoHost-Apps / rss-bridge_ynh

RSS-Bridge package for YunoHost
https://github.com/RSS-Bridge/rss-bridge
The Unlicense
14 stars 5 forks source link

Auth configuration doesn't work #27

Closed krisu5 closed 2 years ago

krisu5 commented 4 years ago

When enabling auth from config.ini.php file (https://github.com/RSS-Bridge/rss-bridge/wiki/Custom-Configuration#authentication), it doesn't accept name / pass.


EDIT: Solution (in my case) is to use same password as user account.

mediaformat commented 3 years ago

I just tried this, and got it to work!

Debian 10
YunoHost 4.0.8 (stable).
rss-bridge 2020-02-26~ynh2
alien2003 commented 3 years ago

Doesn't work for me too

lapineige commented 3 years ago

Is this still an issue ?

krisu5 commented 3 years ago

Is this still an issue ?

It is.

Debian 10
YunoHost 4.1.7.4
rss-bridge 2020-11-10~ynh1
lapineige commented 3 years ago

Can you try to upgrade to lastest version, just in case ?

krisu5 commented 3 years ago

Can you try to upgrade to lastest version, just in case ?

YunoHost says that everything is up to date. Is there some beta version?

(not updating YH to 4.2 testing version though, too risky)

lapineige commented 3 years ago

My bad, I confused your version with the one in a message above.

I have no idea about what's going wrong, maybe there is some log that you can share to help us investigate that issue ?

it doesn't accept name / pass

What do you mean by that ? It doesn't prompt for a password ?

krisu5 commented 3 years ago

it doesn't accept name / pass

What do you mean by that ? It doesn't prompt for a password ?

No, it does prompt. However, it doesn't accept the login and password I added, even though those are correct (I have copypasted the login and password to login prompt, so I'm sure).

It just asks login info again and again, until you cancel it and shows the "Please authenticate in order to access this instance !" error page.

Not sure where would I get a log, but I look around little bit.

krisu5 commented 3 years ago

Okay, I finally figured it out.

It's browser-based issue, I can login with Brave and clean Firefox. I have some about:config tweaks / addons in my Firefox setup that I have enabled, I have to see what would it be.

Sorry for wasting your time, I would have never guessed this would be browser issue :/

lapineige commented 3 years ago

I tried, I can reproduce that issue, even with empty login and password. I couldn't find any relevant log…

edit:

It's browser-based issue, I can login with Brave and clean Firefox. I have some about:config tweaks / addons in my Firefox setup that I have enabled, I have to see what would it be.

If you find out, I'm curious to know :) (maybe a referrer/redirect or cookie setting ?)

Sorry for wasting your time, I would have never guessed this would be browser issue :/

No worries, you couldn't know, and this solved your issue, then that's perfect :)

lapineige commented 3 years ago

(Can you close the issue ? :)

krisu5 commented 3 years ago

(Can you close the issue ? :)

Well, I spoke too soon, LOL.

Issue wasn't a browser, it seems that when you're logged in on YunoHost SSO and tried to go to RSS-Bridge then, issue happens again.

But you can login in to RSS-bridge if you are logged out of YunoHost SSO.

lapineige commented 3 years ago

Ooooook that's interesting… so maybe there is a conflict between Yunohost SSO and Shaarli authentication mechanism… :thinking: Did you try with your Yunohost account credential (without logging into SSO) ?

krisu5 commented 3 years ago

Ooooook that's interesting… so maybe there is a conflict between Yunohost SSO and Shaarli authentication mechanism… 🤔 Did you try with your Yunohost account credential (without logging into SSO) ?

Nope, I have tested this with credentials in config.ini.php that are totally different then my YunoHost user/pass.

lapineige commented 3 years ago

Can you try ?

krisu5 commented 3 years ago

Can you try ?

Sorry, I forgot.

It doesn't ask log in and succesfully access the page, if user/pass is same then YunoHost user/pass. This seems to be solution / workaround.

lapineige commented 3 years ago

So that option forces authentication, but with yunohost account… good to know.

mediaformat commented 2 years ago

My config uses an existing YunoHost-SSO username, but with a different password.