mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #609] authorize not returning succes nor failure #399
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#399
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Zandew on GitHub (Jul 10, 2020).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/609
Description:
In the completion handler, neither
.successnor.failureis being run. The app redirects correctly to the callback URL with all the tokens in the url.Also, is there a better way then instantiate the
loginView? If I dooauthswift.authorizeURLHandler = loginView(), thewebViewbecomesnil.This is the view controller with the webkit
OAuth Provider? (Twitter, Github, ..):
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
[] 11.4 (Swift 5.2)
11.x (Swift 5.1)
10.x (Swift 5.0)
[ x] other: (Please fill in the version you are using.)
Xcode 11.5
[ x] objective c
@phimage commented on GitHub (Jul 11, 2020):
its nil because this not yet loaded. It must be presented OR you have create the link with the outlet in storyboard
Then where are your code to manage "https://zandew.github.io/".? did you can .handle(url when the web view delegate open it?
@Zandew commented on GitHub (Jul 11, 2020):
What do you mean by the code I used to manage my personal website? In this project, I don't reference it anywhere else.
@phimage commented on GitHub (Jul 11, 2020):
So why did you put this website as callback url?
The callback url is used to return you the oquth token; so the provider will call this url and you must call handle function with it
You can use url scheme as explained in readme or wiki OR you have a web view and a delegate to monitor all url browsed in webview
See demo app
@Zandew commented on GitHub (Jul 11, 2020):
I am trying to implement the webview method, is the handle function you are talking about the one I created in
SpotifyLoginVC?@Zandew commented on GitHub (Jul 11, 2020):
I got what I wanted using this tutorial http://fusionblender.net/build-macos-app-spotify-connectivity-swift/, but neither of the cases are still being run.
@phimage commented on GitHub (Jul 12, 2020):
A lot of code for nothing in this tutorial... but if it could help
All for macOS is in demo app; with the webview delegate
@Zandew commented on GitHub (Jul 14, 2020):
thanks for the heads up, i'm currently slowly but surely removing all the unnecessary bits