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

[Question]: Is it possible to have my flutter client read data from my own account #196

Open
NonymousMorlock opened this issue Jan 28, 2024 · 1 comment

Comments

@NonymousMorlock
Copy link

I guess what I'm trying to ask is, with the currently available auth flows, it seems impossible to authenticate and initialize a Spotify object without redirecting users to login to their own spotify account, which I don't want as everything I'll be doing will be reading data from "MY" own developer account and I don't need anything from user's account. even with the oauth, I still need to get credentials, and to do that, I'll need the access and refresh tokens which I can only get from user's redirect.
Please how can I programmatically authenticate a session with My own credentials behind the scenes without having user go through any authentication

@rinukkusu
Copy link
Owner

You should be able to use the "Client Credentials" flow and only use the ClientId and ClientSecret for your app. As you stated, you will not be able to access user related data, as explained here.

If you actually want to access data from your own user account, you will still need to do the OAuth flow. I wouldn't put these credentials in an app, that get's deployed to user devices, though, since a crafty user could extract your personal access- and refresh tokens and do something bad.

See this Spotify Community Question for a solution idea.

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

2 participants