HTTP basic authentication for an App

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.1.27
How are you able to access your server: The webadmin

Describe your issue

Hello everyone,

I asked this question here somewhile ago: HTTP basic authentication for an App directory
The offered solution is not working anymore and I need a solution.

I installed RSS-Bridge and I would like to add HTTP basic authentication in order to keep the app personal only.

How can I add HTTP basic authentication for an app?

Thank you in advance,

Share relevant logs or error messages

not applicable

Anyone can help?

What’s the symptom of ‘not working’.

Also, is this a ynh package we’re talking about here or something deployed inside MyWebApp_ynh?

Thank you for your response.

I am currently trying to set a password on RSS-Bridge. RSS-Bridge has its own web-auth feature, which I have enabled through the config file. However, the issue is that when I try to log in with my username and password, it never logs in and just keeps showing the login prompt in a loop.

I have confirmed this issue with both MyWebApp_ynh and rss-bridge_ynh.

Any suggestions or solutions would be greatly appreciated.

I’m not sure to understand exactly the issue considering that, if it’s a yunohost app, you should tweak its permissions in the Group/Permissions interface to restrict it to your specific user hence making it “personal”, but if you absolutely want to tweak stuff manually and have plenty of fun, you can follow this tutorial and edit the nginx conf of your app accordingly

Thank you for your response, Aleks!

Here is the situation:

I want to access my RSS-Bridge instance through authentication, since I do not want it to be publicly exposed. I’m trying to use RSS-Bridge’s built-in authentication method (a simple web authentication: https://rss-bridge.github.io/rss-bridge/For_Hosts/Custom_Configuration.html#authentication).

If I can get this working, I can easily connect through most RSS readers that support this by default (e.g., FreshRSS).

However, it does not work properly via YunoHost. I get stuck in a loop with the authentication prompt and am never actually logged in.


Previously, I used the YunoHost Groups/Permissions interface, as you suggested and as described in this post: https://forum.yunohost.org/t/http-basic-authentication-for-an-app-directory/30202

Unfortunately, this no longer works. The issue is that RSS readers are no longer able to access my RSS-Bridge instance using the login created via the YunoHost Groups/Permissions interface. They show an error like: status code is 200, meaning “A feed could not be found.” It used to work, but it doesn’t anymore.

I would really appreciate any suggestions or recommendations.

@osman

Try this

yunohost app setting rss-bridge protect_against_basic_auth_spoofing -v false
yunohost app ssowatconf
3 Likes

That’s it! It worked! Amazing! Thank you so much!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.