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

Invalid Redirect URI #4

Closed
sirnacnud opened this issue Sep 26, 2014 · 3 comments
Closed

Invalid Redirect URI #4

sirnacnud opened this issue Sep 26, 2014 · 3 comments

Comments

@sirnacnud
Copy link
Contributor

When trying to use the authentication aspect of the library, coinbase says the supplied redirect URI is invalid. If you try to login with the sample application, you will see this error. After reading over the coinbase API documentation, it says for mobile/desktop apps, a redirect URI of urn:ietf:wg:oauth:2.0:oob should be used. I'm guessing the API has changed since the creation this library. I modified the library to use this redirect URI and I am able to authenticate with coinbase, but then the redirect from safari back to the example app is broken. I guessing instead of launching safari, you have to use a UIWebView in the example application and detect when the page changes to get the auth code.

http://coinbase.com/docs/api/authentication#oauth2

@ghost
Copy link

ghost commented Sep 26, 2014

The issue is that you must have ssl certificate in order to authenticate. Now, Coinbase only allow https.

Cheers

From my iPad

On Sep 26, 2014, at 3:30 AM, sirnacnud notifications@github.com wrote:

When trying to use the authentication aspect of the library, coinbase says the supplied redirect URI is invalid. If you try to login with the sample application, you will see this error. After reading over the coinbase API documentation, it says for mobile/desktop apps, a redirect URI of urn:ietf:wg:oauth:2.0:oob should be used. I'm guessing the API has changed since the creation this library. I modified the library to use this redirect URI and I am able to authenticate with coinbase, but then the redirect from safari back to the example app is broken. I guessing instead of launching safari, you have to use a UIWebView in the example application and detect when the page changes to get the auth code.

http://coinbase.com/docs/api/authentication#oauth2


Reply to this email directly or view it on GitHub.

@sirnacnud
Copy link
Contributor Author

You would only use https if you are creating a website, not a mobile/desktop app.

@joshbeal
Copy link
Owner

@sirnacnud is correct. the library now supports this redirect url exclusively, and the example application has been updated to use it.

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

2 participants