raulriera / AuthenticationViewController

A simple to use, standard interface for authenticating to oauth 2.0 protected endpoints via SFSafariViewController.
MIT License
257 stars 14 forks source link

Coub doesn't work properly #7

Open gerchicov-bp opened 6 years ago

gerchicov-bp commented 6 years ago

Description for coub: https://coub.com/dev/docs/Coub+API%2FAuthentication

If you need test credentials: ID: 60b88af1e39803f5f68716bc364a498f9d4e733a7f76735dc48729e697de3bd6 Secret: 6f62d7366a58b07377a3046922d49c4f5ab882eebe322f50467856bb7b86e049 Redirect URL: http://gargo.of.by Permissions: like+recoub

I used your example and added OAuthCoub (looks like your OAuthDribble and OAuthInstagram) and called it. It seems everything ok with authorization - successfully logged in, and redirected to "Redirect URL". The only main trouble is application:openURL:options: is not called at all and so I don't have a token in my app.

Could you please resolve this strange issue?

raulriera commented 6 years ago

Hi, did you follow the instructions about the URL scheme? It should be the callback url provided in Coub. What URL scheme did you used?

raulriera commented 6 years ago

The redirect URL needs to be something that points to your app yourapp:// for example. In the readme file are the instructions. Or in the example project