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

Non-localhost URL / Spotify API Server Source #79

Closed
Piers-Walter opened this issue Oct 30, 2021 · 2 comments
Closed

Non-localhost URL / Spotify API Server Source #79

Piers-Walter opened this issue Oct 30, 2021 · 2 comments

Comments

@Piers-Walter
Copy link

Hi, I'm trying to get this to work with Spotify on a URL which isn't localhost:3000 but instead bundled inside a Cordova application which you can see on my GitHub here.

When the /callback request to the ngrok server goes off it seems to always return a 404 even if no request with the spotify-provided code and state has been sent yet. I'm guessing the ngrok server only allows requests from localhost:3000 and tannerv.com? If this is the case would it be possible to get the source code for the Spotify auth server so we can host our own implementations?

Thanks, Piers

@tvillarete
Copy link
Owner

Hey @Piers-Walter, that is correct – for security purposes Spotify requires that you whitelist specific callback urls, and localhost:3000 and tannerv.com are currently the only two whitelisted ones.

I actually used Spotify's Authorization Code Flow example code on their GitHub, which only required a few adjustments to work with my particular urls. Give it a try, and let me know if I can clarify anything else.

Neat project by the way; keep me posted on your progress!

@rocheston
Copy link

how did you manage to configure locally?

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

3 participants