Closed Gerst20051 closed 10 years ago
Hi,
Actually the code of oauthd is the same as OAuth.io's. The problem comes from the fact that in OAuth.io's config.js file, we have the base
field set to /auth
, while I saw that in oauthd, the base
field is set to /
.
I'm going to write fixes in the SDKs to better handle this case without having every oauthd user change their config. In the mean time, you can set this field to /auth
for now. I'll tell you when the fix is done.
Hope this helps :)
This has been fixed in version 0.2.1
, which allows you to specify the base
field used in your oauthd instance:
$oauth->setOAuthdUrl('http://your_url.com', '/');
See https://github.com/oauth-io/sdk-php/releases/tag/0.2.1.
Hope this helps :)
File: src/OAuth_io/OAuth.php
'url' => $this->injector->config['oauthd_url'] . '/auth/access_token',
should be'url' => $this->injector->config['oauthd_url'] . '/access_token',
as defined in oauthd here
server.post(config.base + '/access_token', function(req, res, next) {