p2 / OAuth2

OAuth2 framework for macOS and iOS, written in Swift.
Other
1.15k stars 277 forks source link

New Https required Redirect URI error #286

Closed riverbaymark closed 6 years ago

riverbaymark commented 6 years ago

Greetings,

So for the API I am calling for OAuth, I um unable to use a SafariView due to the required https:// redirect url. As I am watching the debugging I am able to grab the code, but when I it tries to exchange it for a token, I get this error:

Completion handler passed to -[OAuth2.OAuth2WebViewController webView:decidePolicyForNavigationAction:decisionHandler:] was called more than once

Any ideas?

Thanks!

p2 commented 6 years ago

This was fixed a while ago. How are you installing the framework?

riverbaymark commented 6 years ago

Hi Pascal,

I just went back and checked and I installed it via git. Maybe I should reinstall via Carthage?

Thanks!

Mark

p2 commented 6 years ago

No, git is great! Are you on master? Here is the relevant code.

riverbaymark commented 6 years ago

Thank you! I will inspect to make sure I am on master and look at the code. This is very helpful!

I will let you know what I find out.

Mark

riverbaymark commented 6 years ago

It turns out I wasn't using master after all. I just went back and reinstalled and it works beautifully!

Thanks Pascal and great work on this and all your stuff with Apple Health! As a provider / developer myself you are helping us to be able to escape the realms of horrible medical software we have had to work with for years by enabling us to build our own!

Mark