GithubHelp home page GithubHelp logo

Spotify and Rdio API about oauthd HOT 9 CLOSED

oauth-io avatar oauth-io commented on June 11, 2024
Spotify and Rdio API

from oauthd.

Comments (9)

JMPerez avatar JMPerez commented on June 11, 2024

I'm trying to implement a provider for Spotify, but I'm a bit stuck trying to make it work. Is there any documentation about writing providers?

from oauthd.

thyb avatar thyb commented on June 11, 2024

You have some docs in the wiki pages: https://github.com/oauth-io/oauthd/wiki/Specs:-Provider's-configuration and https://github.com/oauth-io/oauthd/wiki/Expanded-providers

We tried to implement Spotify some month ago but we've faced some issues as they didn't got any documentation on OAuth.

For the implementation of providers, we follow the wishlist: https://oauth.io/wishlist

from oauthd.

JMPerez avatar JMPerez commented on June 11, 2024

We are working on a new oAuth2 gateway. My main problem right now is that, in order to get an access token given a code, instead of sending the client_id and client_secret as GET parameters, I need to send an Authorization header whose value is Basic <base64 encoded client_id:client_secret>.

This is a bit like Vimeo's oAuth2.

But I can't see how to accomplish this in the conf.json file.

from oauthd.

thyb avatar thyb commented on June 11, 2024

Ah, it's a great news that Spotify is working to implement OAuth2 !

However, we don't support the Client Credential flow which is a server to server flow (the flow you try to implement in the conf.json looks like this flow). We will support it in the future on our server SDK but it can't be used client side with the current implementation.

At Spotify, do you have implemented the OAuth2 authorization code flow (it's the flow which can be described in the conf.json of OAuth.io)?

from oauthd.

 avatar commented on June 11, 2024

Interesting! i'm following the thread thanks guys

from oauthd.

TheVinc avatar TheVinc commented on June 11, 2024

Hi,
Spotify and Rdio were added to the providers list and integrated into the 1.0.0-alpha-6 release.
Spotify implements OAuth2 and we have enabled the 'me' functionality for it.
Rdio implements OAuth1 and isn't compatible with our 'me' feature for the moment.
Thanks for your feedback.

from oauthd.

JMPerez avatar JMPerez commented on June 11, 2024

Thanks @TheVinc for the great news!

I have just tried the Spotify one using the "Try auth" button on the dashboard and it doesn't work. I'm taken to https://accounts.spotify.com/authorize?response_type=code&client_id=XXXXXX&client_secret=YYYYY&redirect_uri=https%3A%2F%2Foauth.io%2Fauth&state=kvmJJLZ7b5FeWqViP4czjmF0Cy0&scope=%2Cuser-read-email which fails because the scope contains a space in front.

Also, it would be good to remove the client_secret from the URL, since it doesn't have to be sent in that step.

from oauthd.

TheVinc avatar TheVinc commented on June 11, 2024

Hi,

Thanks for pointing this out.
We will fix that and propagate the changes on oauth.io today or tomorrow.

from oauthd.

Gerst20051 avatar Gerst20051 commented on June 11, 2024

👍

from oauthd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.