Right now if I want to subscribe a room to a private feed I can do so via https://user:pass@feed.example.org/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:pass@feed.example.org/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 neededself.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.