[GH-ISSUE #208] Neither success or failure is triggered with authorizeWithCallbackURL #115

Closed
opened 2026-03-03 16:45:49 +03:00 by kerem · 1 comment
Owner

Originally created by @selde on GitHub (Mar 22, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/208

Hi

I have some trouble that authorizeWithCallbackURL never triggers neither success or failure. Instagram is correctly opened, user is authenticated, and it reopens the app correctly. But nothing is run from success or failure (in example below nothing is printed...)

What can be the reason for this behavior?

    oauthswift.authorizeWithCallbackURL(
        NSURL(string: "oauth-swift://oauth-callback/instagram")!,
        scope: "likes+comments", state:"INSTAGRAM",
        success: { credential, response, parameters -> Void in
            print("It works!")
        },
        failure: { error in
            print(error.localizedDescription)
        }
    )
  • OS targeted (with version): IOS 9.2
  • OAuth provider: Instagram
  • OAuthSwift version: 0.5.1
Originally created by @selde on GitHub (Mar 22, 2016). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/208 Hi I have some trouble that authorizeWithCallbackURL never triggers neither success or failure. Instagram is correctly opened, user is authenticated, and it reopens the app correctly. But nothing is run from success or failure (in example below nothing is printed...) What can be the reason for this behavior? ``` oauthswift.authorizeWithCallbackURL( NSURL(string: "oauth-swift://oauth-callback/instagram")!, scope: "likes+comments", state:"INSTAGRAM", success: { credential, response, parameters -> Void in print("It works!") }, failure: { error in print(error.localizedDescription) } ) ``` - **OS targeted (with version):** IOS 9.2 - **OAuth provider:** Instagram - **OAuthSwift version:** 0.5.1
kerem closed this issue 2026-03-03 16:45:49 +03:00
Author
Owner

@selde commented on GitHub (Mar 22, 2016):

My mistake - missing the AppDelegate code for correct IOS version.

<!-- gh-comment-id:200057820 --> @selde commented on GitHub (Mar 22, 2016): My mistake - missing the AppDelegate code for correct IOS version.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#115
No description provided.