Comments (9)
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.
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.
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.
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.
Interesting! i'm following the thread thanks guys
from oauthd.
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.
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.
Hi,
Thanks for pointing this out.
We will fix that and propagate the changes on oauth.io today or tomorrow.
from oauthd.
👍
from oauthd.
Related Issues (20)
- Oauthd updates HOT 6
- XSS Vulnerability in Firefox HOT 3
- Can't seem to create new profile HOT 29
- Web frontend is broken HOT 1
- You must provide a state when server-side auth HOT 1
- Slack Issues for "incoming webhooks" HOT 8
- Moving to a new server - best method? HOT 1
- Shopify - missing option to specify shop?
- Still supported / active? HOT 1
- Reset admin password? HOT 3
- XSS Vulnerability with upper cased Javascript protocol HOT 2
- vk.com me() function returns 500 HOT 1
- Fix CI
- I am just wondering where does oauthd persist the api keys? HOT 1
- Provider: google - Legacy People API HOT 1
- This is a dead project.. right??? HOT 2
- The service is offline HOT 7
- Update JS SDK
- Investigate LinkedIn v2 migration
- Always return raw values after authentication
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oauthd.