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

Add support for authentication and online feed #73

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

syhlx
Copy link

@syhlx syhlx commented Aug 26, 2022

This enables access to a personal feed as user registered user of an Invidious instance.

To enable the feature, go to https://invidious.example.com/authorize_token?scopes=:* to generate a token a paste the entire string into the addon's settings (eg. {"session":"v1:XXXXXXXXXXXXXX","scopes":[":*"],"signature":"XXXXXXXXXXXXXXXXXXXXX"}).

If a token is present in the settings, the feed will default to the user's online feed (from the Invidious instance), if not, it will show the locally selected subscriptions.

This partially solves #41.

@syhlx syhlx changed the title Add support for athentication and online feed Add support for authentication and online feed Aug 26, 2022
@lamarios
Copy link

I'm fairly new to kodi, if i want to use your fork of the repo, I just download it as a zip and install it in from it ?

@syhlx
Copy link
Author

syhlx commented Nov 30, 2022

I'm fairly new to kodi, if i want to use your fork of the repo, I just download it as a zip and install it in from it ?

Yes, just make to sure to select the "authentication" branch before downloading as a zip from Github.
Kodi will be able to install the plugin directly from this zip file.

@lamarios
Copy link

Great. Thank you

@lekma
Copy link
Owner

lekma commented Oct 15, 2024

I'll have a look at that if I can find a stable public instance that would loan me an account for testing purposes

@lamarios
Copy link

How can I reach out to you. You can use my instance if you want.

@lekma
Copy link
Owner

lekma commented Oct 15, 2024

lekma at duck dot com

@lekma
Copy link
Owner

lekma commented Oct 15, 2024

but i will only be able to look at that next month at the earliest...

@lekma
Copy link
Owner

lekma commented Oct 27, 2024

so I had a quick look

is there really no better way to login directly through the api??!!

can you use the token on another machine (even though you never logged in with that machine)? if yes what happens when you logout on the machine you got the token with? is it revoked? can it still be used?

otherwise it shouldn't be too difficult, i'll try it this week as soon as i have some free time.

last question when "logged in" do you want the remote feed to be merged with the local one or do you prefer them to be exclusive?

@lekma lekma mentioned this pull request Oct 27, 2024
@lekma
Copy link
Owner

lekma commented Oct 27, 2024

omg when login on the website the form sends the credentials in clear text... is that configurable on the instance?

@lekma
Copy link
Owner

lekma commented Oct 27, 2024

also i get a 403 for '/api/v1/auth/tokens/unregister' and '/api/v1/auth/tokens/register' while '/api/v1/auth/tokens' is ok...

@lekma
Copy link
Owner

lekma commented Oct 29, 2024

omg when login on the website the form sends the credentials in clear text... is that configurable on the instance?

ok... this seems to be the norm for web developers...

which only leaves us with the option of storing passwords in clear, if we were to implement automatic login... (thinking out loud here)... so... no automatic login??

@lekma
Copy link
Owner

lekma commented Oct 29, 2024

forget my previous message (i think i'm having a brain fart....)

@lekma
Copy link
Owner

lekma commented Oct 30, 2024

progress: iv-org/invidious#5040

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

Successfully merging this pull request may close these issues.

3 participants