Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Username and password credentials required namespace #296

Open
mitchdowney opened this issue Sep 21, 2021 · 2 comments
Open

Proposal: Username and password credentials required namespace #296

mitchdowney opened this issue Sep 21, 2021 · 2 comments

Comments

@mitchdowney
Copy link
Contributor

The goal of this namespace is to indicate to a podcast app that the episodes for an RSS feed are username and password protected.

There is one known example of a feed in Podcast Index that could use this namespace. Aeon Byte Inner Sanctum of Gnosis is a public RSS feed that is available in Podcast Index, but the media content can only be played if you provide a valid username and password.

In order for apps to properly handle this situation, we need to know in advance that the media content of the RSS feed is password protected. A simple boolean that tells us "content is username and password protected" would work for this RSS feed, so I propose a podcast:credentialsRequired tag that can be set at the podcast/channel level. If set at the podcast/channel level, then apps can prompt users for a username and password, and then pass those credentials with every request to stream or download its episodes.

One thing I am not sure how we should handle is, what if a feed contains credentialsRequired content, and non-credentialsRequired content? If we know what content in the same feed is password protected or not, we could render a "Premium content" indicator in the UI, so the user knows which episodes/items can be played without a username and password. Perhaps podcast:credentialsRequired can be set at the podcast/channel level, and podcast:credentialsRequiredfalse</podcast:credentialsRequired> can be set at the episode level for each episode that does not need username and password?

This proposal might overlap with #239, so if it's redundant please feel free to close this issue. My understanding is that 239 goes much deeper than a simple "basic authentication required" boolean, but if 239 can accomplish the same thing, maybe it is best to wait until 239 is formalized and close this proposal.

@mitchdowney mitchdowney changed the title Username and password credentials required namespace Proposal: Username and password credentials required namespace Sep 21, 2021
@keunes
Copy link

keunes commented Sep 21, 2021

AntennaPod already prompts for a username and password when necessary. So I'm wondering if it's actually necessary (?)

No idea how that works, though. Something with standard http authentication?

@mitchdowney
Copy link
Contributor Author

mitchdowney commented Sep 22, 2021

@keunes you are right that we should also be able to receive a 401 Unauthorized response to handle this...however I have had trouble implementing this with the react-native-background-downloader and react-native-track-player we are using to download episodes and stream them...

While we should be able to handle a 401 Unauthorized error, I think it would be at least a slight UX improvement if we could know which episodes required a username and password before making the first request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants