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

How to use ? how to integrate this library with the "Authorization Code Flow" method of authorization #12

Closed
moda20 opened this issue Feb 5, 2019 · 9 comments

Comments

@moda20
Copy link

moda20 commented Feb 5, 2019

How to use ? how to integrate this library with the "Authorization Code Flow" method of authorization

@rinukkusu
Copy link
Owner

rinukkusu commented Mar 1, 2019

Sorry @moda20 for letting you wait - this feature is not yet merged into master. We have a PR waiting with exactly what you're asking for, but I didn't take/have the time yet, to look at it closely (although I promised it to @chances 😿). I don't know when this will make its way into a release, but it will probably come this year. 😛

@ghost
Copy link

ghost commented Mar 18, 2019

How's the implementation of this functionality going? Is there anything we can do to help you @rinukkusu ?

@ebarnsli
Copy link
Contributor

ebarnsli commented Mar 20, 2019

Will this code allow the use of the User endpoints. I'm confused how the /me endpoint would work without authorization flow. Do you need the authorization flow for those endpoints? Would be interested in helping.

@chances
Copy link
Contributor

chances commented Apr 26, 2019

@rinukkusu

... but it will probably come this year.

Most definitely! I've been distracted with other projects lately, but I hope to get back to my PR soon. 🤞

@SergioSanchezMontesUAM @ebarnsli

PR #4 has the beginnings of a solution to this issue.

It lets you explicitly supply tokens in both the Implicit Grant and Authorization Code flows to a SpotifyApiCredentials instance. I use these in a project of mine where I authenticate the user with Spotify externally.

@jobehi
Copy link

jobehi commented Sep 9, 2019

Hello, is there any news concerning the RP ?

@ebarnsli
Copy link
Contributor

ebarnsli commented Sep 9, 2019

@jobehi no, i've had PR's open for months with no response. not activity has occurred on this project in a minute :(

@jifalops
Copy link

jifalops commented Oct 7, 2019

I've got this working in my fork by using an oauth2.Client for requests, and the client has the user's credentials and will refresh the token when necessary (in theory, I just got it working and haven't figured out the refresh bugs yet). There is a PR (#16) for just setting the accessToken directly, but then it wont be refreshed automatically.

@rinukkusu
Copy link
Owner

Hi @chances and @jifalops, sadly I don't have the time anymore to really put my head into the spotify docs, but if you guys have a working solution, don't hesitate coming forward with a PR.

@chances Is PR #4 in a usable state or are there still missing pieces?

@rinukkusu
Copy link
Owner

We now do have oauth2 implemented with some documentation. How to use will be discussed in issue #37

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

6 participants