Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Invalid Credentials on login #19

Open
ghost opened this issue Jun 17, 2017 · 5 comments
Open

Invalid Credentials on login #19

ghost opened this issue Jun 17, 2017 · 5 comments

Comments

@ghost
Copy link

ghost commented Jun 17, 2017

Re-writing a python app in Java where I used to use gmusic api.

Very simple use, I'm just looking to list songs in my library and play from urls, so the only functionality I need is getAllSongs() and Song.getURL()

Trying to initialise a GoogleMusicAPI with a very simple login is not working for me. I'm just doing so far:

GoogleMusicAPI musicAPI = new GoogleMusicAPI();
        try {
            musicAPI.login(GoogleMediaUsername, GoogleMediaPassword);
        } catch (Exception ex) {
            System.out.println(ex);
        }

I'm getting the Invalis Credentials Exception with the message "gmusic.api.impl.InvalidCredentialsException: Provided credentials: '***********@googlemail.com' and '*******' where insufficient" (redacted, not actually asterixs)

Not sure what I'm doing wrong because the login credentials are correct and I'm trying to peice together the correct procedure from mathod names as there's obv no documentation or comments in the API.

Can you assist at all?

@jkiddo
Copy link
Owner

jkiddo commented Jun 18, 2017

You need to use app specific credentials - see https://support.google.com/a/answer/1032419?hl=en

@ghost
Copy link
Author

ghost commented Jun 18, 2017

Thanks for replying so fast (didnt expect that given how long since the project seems to have been active)

I'm not quite sure what you mean by that (I dont have much experience in cloud apps and service authentication etc). The link you supplied seems to be specifically about 2-step authentication, which I dont have or want set up on this account (the account will be hard coded without really to possibility to authenticate on the fly). Also, this wan't required using https://github.com/simon-weber/gmusicapi, of which this api is apparently a port.

Any more detailed help on how I can log in to play and get the songs list would be amazing

@jkiddo
Copy link
Owner

jkiddo commented Jun 19, 2017

Sorry - got the wrong link for you. What you need to look at is https://support.google.com/accounts/answer/185833?hl=en since the framework does not support anything else

@ghost
Copy link
Author

ghost commented Jun 21, 2017

Hi jkiddo. Thanks for that link, however I set up 2-step authentication on my account, generated an app password for my project and when using it in the same way I still get:
gmusic.api.impl.InvalidCredentialsException: Provided credentials: '********@gmail.com' and '*********' where insufficient

@jkiddo
Copy link
Owner

jkiddo commented Jul 18, 2017

Its broken

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

No branches or pull requests

1 participant