You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now if I want to subscribe a room to a private feed I can do so via https://user:[email protected]/rss. This is however, unsatisfying because it exposes my credentials to the whole room.
A better solution would be to utilize aiohttp's basic auth capabilities for certain domains if an RSS admin does the subscription.
Some necessary steps:
Check headers['www-authenticate'] in parse_feed for 'Basic realm="Use test/basic"'
This indicates that auth is needed
Right now if I want to subscribe a room to a private feed I can do so via
https://user:[email protected]/rss
. This is however, unsatisfying because it exposes my credentials to the whole room.A better solution would be to utilize aiohttp's basic auth capabilities for certain domains if an RSS admin does the subscription.
Some necessary steps:
headers['www-authenticate']
inparse_feed
for'Basic realm="Use test/basic"'
This indicates that auth is needed
self.http.get(url, auth=aiohttp.BasicAuth(user, pass))
What do you think about such an enhancement? I would consider providing a pull request but i dont have a good dev setup here to test it.
The text was updated successfully, but these errors were encountered: