stevenmaguire / oauth2-salesforce

Salesforce Provider for the OAuth 2.0 Client
MIT License
31 stars 13 forks source link

Salesforce - Social Studio API #5

Open edossantos opened 8 years ago

edossantos commented 8 years ago

It's possible to use this library for the Salesforces API, I'm trying to authenticate using

`POST /oauth/token HTTP/1.1 Host: api.socialstudio.radian6.com Cache-Control: no-cache Content-Type: application/x-www-form-urlencoded

grant_type=password&client_id={clientKey}&client_secret={clientSecret}&username={username}&password={password}`

Thank you advance.

stevenmaguire commented 8 years ago

I am not sure. Have you tried? You can set a custom domain when configuring the client (https://github.com/stevenmaguire/oauth2-salesforce#authorization-code-flow). If the authorization paths are different than the ones configured in this package, I would suggest creating a local child class that extends this one as a proof of concept. If, in fact it is possible, I am happy to consider modifying this package to accommodate this new use case; I'd like to understand its feasibility first.