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

Authentication Succesful But Nothing Happens #56

Closed
Time2Veto opened this issue Apr 5, 2022 · 45 comments
Closed

Authentication Succesful But Nothing Happens #56

Time2Veto opened this issue Apr 5, 2022 · 45 comments
Labels
bug Something isn't working deployed This issue has been fixed/implmented and has been released duplicate This issue or pull request already exists

Comments

@Time2Veto
Copy link

So I can put in the ClientID and the SecretID and then it'll bring me to the proper authorize access page BUT then it gets stuck on successful with nothing changing in the app. Sits on the submit page where I keep opening the allow access page. I am having this issue on Android and Windows.

Expected behavior
Should Log me in.

Desktop:

  • OS: Windows 10
  • Version: Latest

Smartphone (please complete the following information):

  • Device: Pixel 6 Pro
  • OS: Android
  • Version: Lastest
@Time2Veto Time2Veto added the bug Something isn't working label Apr 5, 2022
@KRTirtho
Copy link
Owner

KRTirtho commented Apr 7, 2022

Close the app. In android, Clear Storage of the app from the app info & try again

@Time2Veto
Copy link
Author

It doesn't change the outcome. Just gets stuck at this page and doesn't sign me in.
Uploading Screenshot_20220406-235355.png…

@KRTirtho
Copy link
Owner

KRTirtho commented Apr 7, 2022

The screenshot redirects to the issue. Provide correctly

@Time2Veto
Copy link
Author

Time2Veto commented Apr 7, 2022

Sorry trying to. Mobile is hating me right now. [Here] (https://imgur.com/a/QbPlanc)
I'm not sure what I'm doing wrong. But that link should go to.the imgur post of the page.

@KRTirtho
Copy link
Owner

KRTirtho commented Apr 7, 2022

Again wrong URL

@Time2Veto
Copy link
Author

I'm not sure what exactly I'm doing wrong about it? It's the right if you copy and paste it. Just clicking the hyperlink redirects to this page for some reason.

@KRTirtho
Copy link
Owner

KRTirtho commented Apr 7, 2022

Can provide the app screenshot?

@Time2Veto
Copy link
Author

Time2Veto commented Apr 7, 2022

Sure. So yeah.

  1. Enter in info hit submit
  2. Get the success page I showed you https://imgur.com/a/QbPlanc
  3. Nothing happens until I manually go back to app
  4. Nothing changes on app. Like I never hit submit here

@KRTirtho
Copy link
Owner

KRTirtho commented Apr 7, 2022

Try hitting back & see if a red logout button appears or if its still showing a green connect with Spotify button

@Time2Veto
Copy link
Author

That's what I try. Still green and no login at all.

@KRTirtho
Copy link
Owner

KRTirtho commented Apr 7, 2022

Did you try uninstalling & reinstalling the app

@Time2Veto
Copy link
Author

Just tried and no changes. Still doesn't work.

@Time2Veto
Copy link
Author

So just an update. Been trying daily and still nothing. Maybe its my phone? Or account?

@KRTirtho
Copy link
Owner

KRTirtho commented Apr 9, 2022

It could be a special case for your phone or account. Why not try with a new account?

@Time2Veto
Copy link
Author

I'd imagine it must be my account. Just shame if it is.

@Time2Veto
Copy link
Author

It's my account. So I have no idea why but my original account can't sign in. Wonderful. Any ideas or just lost cause? Only cuz it's recommend is better catered

@KRTirtho
Copy link
Owner

KRTirtho commented Apr 9, 2022

Are you using Spotify premium?

@KRTirtho KRTirtho added help wanted Extra attention is needed and removed bug Something isn't working labels Apr 9, 2022
@Time2Veto
Copy link
Author

Would that cause an issue? I actually am cuz I paid for it thinking your app would block ads lol I know it does now but at the time.

@KRTirtho
Copy link
Owner

KRTirtho commented Apr 9, 2022

Actually, I didn't test the app with premium accounts so it could be a reason causing error in the app

@Time2Veto
Copy link
Author

Well I can try it out when it runs out next month

@KRTirtho
Copy link
Owner

KRTirtho commented Apr 9, 2022

Yep, that would be helpful

@karniv00l
Copy link
Contributor

I've tried both macos and android 11 with premium account, works fine for me

@KRTirtho
Copy link
Owner

So I guess its an edge case for @Time2Veto's account

@Time2Veto
Copy link
Author

The only thing I can think of is this being an issue with it being like a hulu/spotify student bundle that ran out? Like this is from years ago so maybe somethings different about it. Last idea. Not a big deal though

@Gottarocket
Copy link

Authentications successful on my end too but no redirection to app. Not premium . Changed browser still same issue. I believe its because its old account or is it location issue?

@PranavBhattarai
Copy link

PranavBhattarai commented May 4, 2022

Guys the problem is, after when we give Spotify permission to Spotube, the browser tries to go to a URL named "localhost:4304/auth/spotify/callback /...." which on PC (either in Windows or Linux) does redirect to Spotube App but when it comes to mobile (Android), it doesn't.

I wonder, has anyone done this on their mobile successfully! How does the mobile browser redirect "the successful token" to application installed on the phone? This logic needs some fixing to do.

Edit: We need some browser that CAN redirect localhost url authentication to the app properly. OR we need to introduce the new logic in the app.

New logic:

  1. Spotube token which can be used to sync user whether he is on Linux, windows, or android.
  2. Need Spotube client ID and Spotube secret token that can be copy-pasted into multiple devices to kind of "sign-in to Spotube ID".

Does this make sense? @karniv00l

@92flash
Copy link

92flash commented May 10, 2022

I have the same problem too.

@KRTirtho
Copy link
Owner

@Gottarocket "Authentication Successful" means you're authenticated with your Spotify Account in Spotube. The browser won't redirect to the app even if the authentication is successful. You've to manually go to the app & check if you're logged in. If everything went fine you'll see a Red "Log Out" button on the Settings Page of Spotube

@senolfndk
Copy link

😉
Ekran görüntüsü 2022-05-22 082744
kokok
olko

@Gottarocket
Copy link

Gottarocket commented May 22, 2022

Android app . It is where I have issue . Sorry if it has separate repo to file issue.

@KRTirtho
Copy link
Owner

KRTirtho commented May 22, 2022

@Gottarocket The authentication procedure is same for all platforms (Android, Linux, Windows, Mac)

Sorry if it has separate repo to file issue.

Spotube is using single codebase for all platforms so issues of every platform can be filed in the same repo

@Gottarocket
Copy link

Sure . On mobile open in app option should be available as authentication successful doesn't update on app end so it still asks to login

@PranavBhattarai
Copy link

@karniv00l
I think we can really close this issue. Because after the update of ver 2.2.0, I was able to successfully login in SpotTube. It's a bit tricky though:

  1. Install the latest Spotube (if you have not installed the new version yet)
  2. Try to login into Spotify using its credentials
  3. It will redirect you to your default browser (in my case, it's Firefox ver.102.2)
  4. It can/will throw an error, like "some went wrong"... or something... when you give Spotube the permission from Spotify website.
  5. Select desktop mode, to view that page, which will again ask permission to allow Spotube.
  6. Spotify website will give you a response saying, "Successfully gained permission, return to Spotube".
    6.1 But when you go back to Spotube, it doesn't show that you are already logged in.
  7. Repeat Steps 2, 3, 4, 5, and 6 one more time, and voila` you have logged in for real.

The important thing is: You need to log into Spotify, at least twice. I know its sounds weird but totally works.

Tested Device: Oneplus 5
ROM: Pixel Experience 12 (android 12 L)

The only annoying thing when it comes to Android is this:

you get an update notification 
  you download the latest update from GitHub 
   you try to install that package
    it will throw an error saying, "packaging error"
     you uninstall previous Spotube installed on your phone
     you install the new version
      repeat the painful cycle of Step 1 to Step 7 again. 

Really kills the vibe doing this on REPEAT.

@KRTirtho
Copy link
Owner

@PranavBhattarai the login was successful in the very 1st time. You just had to check whether you can access search & library tab or not. If you can then you're logged in

@PranavBhattarai
Copy link

@karniv00l Maybe I or maybe I didn't check the library. But the important thing was during the 1st attempt, Spotube didn't show the Logout option in the place of the Spotify option and it was only shown after the *second attempt.

I will carefully notice the library tab after the 1st attempt again in the next Spotube update (since I have to redo this thing again).

@KRTirtho
Copy link
Owner

KRTirtho commented Sep 9, 2022

It should be fixed in 2.4.0. Can you guys check again?

@PranavBhattarai
Copy link

PranavBhattarai commented Sep 10, 2022

yeah, it works. Thank you. Lovely update. Looks sleeker.

Tested on: Fedora 36
Tested how: I logged out > login in > worked in 1 go.
Need to test this in Android too, wait.

Edit: On mobile things are more broken, than ever.
What happened:
I installed a new version. Surprisingly it didn't ask it to re-login neither it asked me to uninstall the previous version. Perfect. But to test* this authentication issue, I logged out and things broke.

Broken how? The layout of the PC came inside the mobile. Everything looks giant and unusable.
What else have you tried to fix? I removed the cache, deleted app storage, restarted the app, uninstall the app, and reinstalled the app. Nothing worked.

@PranavBhattarai
Copy link

@KRTirtho
spot

Device Tested: Oneplus 5
ROM: Android 12L

@KRTirtho
Copy link
Owner

@PranavBhattarai
Can you,

  • connect your device via ADB
  • run flutter logs
  • start using the app
  • see what logs it outputs
  • finally provide the logs here?

@PranavBhattarai
Copy link

PranavBhattarai commented Sep 10, 2022

@KRTirtho I wish I could. Phone's USB port of this phone is a bit damaged (I think).
I haven't been able to transfer files or use the ADB command in ages.
The phone is in "Charge only mode". Only charge. No data transfer.

Edit:
But is there a way to generate this from Termux, then do let me know.

@KRTirtho
Copy link
Owner

KRTirtho commented Oct 3, 2022

Hey everyone see #152 (comment)

@KRTirtho
Copy link
Owner

v2.5.0 fixed the issue. Download & install the latest version 😄

@KRTirtho
Copy link
Owner

duplicate of #152

@KRTirtho KRTirtho added duplicate This issue or pull request already exists deployed This issue has been fixed/implmented and has been released bug Something isn't working and removed help wanted Extra attention is needed labels Oct 13, 2022
@senolfndk
Copy link

v2.5.0, sorunu düzeltti. En son sürümü indirin ve yükleyin😄

ok

@KRTirtho
Copy link
Owner

Closing this issue as it was fixed in v2.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working deployed This issue has been fixed/implmented and has been released duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

7 participants