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

Cannot log in #285

Closed
crides opened this issue Dec 28, 2019 · 9 comments
Closed

Cannot log in #285

crides opened this issue Dec 28, 2019 · 9 comments

Comments

@crides
Copy link

crides commented Dec 28, 2019

Hi, the login for the commandline app is not working. By following this link provided by the commandline app by using :login, but after I enter the accout information, Google tells me:

Sign in with Google temporarily disabled for this app

This app has not been verified yet by Google in order to use Google Sign In.

@trizen
Copy link
Owner

trizen commented Jan 6, 2020

From Google:

External apps that request sensitive or restricted user data must first be verified by Google. This process may take 4-6 weeks. In addition, if you selected restricted scopes, you'll need to go through an independent security review, which can cost USD $15k-$75k.

For now, only 100 users can sign-in (already at 100/100).

In order to submit the app for review, lots of requirements have to be met: what are the requirements for verification?

I'm not sure yet if to send the app for review.

@apetresc
Copy link

The best way around this (that most similar apps use) is to allow the user to register their own API project in their own GCP accounts, and set the client_id and client_secret somewhere a config or source file. That way each user has their own rate limit and signup quota of 100 users.

Is something like that currently possible with youtube-viewer? Where are the client tokens stored?

trizen added a commit that referenced this issue Feb 12, 2020
…d client secret values. (#285)

Changing these values can be done by modifying the "~/.config/youtube-viewer/api.json" file. See the README.md file for more details.

This should allow logging in.

Thanks to @apetresc for suggesting this.
@trizen
Copy link
Owner

trizen commented Feb 12, 2020

Added support for changing the client ID and client secret values in 3292f49.

Can someone test this to see if it actually works? Thanks!

@apetresc
Copy link

I will test momentarily :)

@apetresc
Copy link

apetresc commented Feb 12, 2020

Okay confirmed - it works just fine! From both youtube-viewer and gtk3-youtube-viewer I was able to access and modify subscriptions using my own OpenID app, which is all the evidence I need.

(Actually, slightly unrelated question - I know I can use :subscribe=i from the CLI client to add a subscription, but I can't figure out how to just view videos from my subscriptions in the CLI, the way I can with gtk3-youtube-viewer by using "My Panel". Any hints?)

@trizen
Copy link
Owner

trizen commented Feb 12, 2020

Thank you very much for testing! A new version will be tagged soon.

For viewing subscriptions in the CLI version, try:

$ youtube-viewer -S     # subscription channels
$ youtube-viewer -SV    # subscription videos (slow)

See also: #191

@escondida
Copy link

Trizen, I've added a note to the official Arch package that, on install or upgrade, requests that users who are able create their own credentials and references README.md.

@DL6AKU
Copy link

DL6AKU commented Feb 28, 2020

I cannot create OAuth 2.0 credentials because in the OAuth consent screen I cannot check internal because I am not a g-suite user? What am I doing wrong here?

Screenshot_20200228_113913

@trizen
Copy link
Owner

trizen commented Feb 28, 2020

The User Type should be External.

@trizen trizen unpinned this issue Nov 3, 2020
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

5 participants