mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #694] OAuthSwiftError -10 after canceling redirection to app #449
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#449
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 @fbaumgart on GitHub (Feb 7, 2022).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/694
Description:
Hello,
I have implemented authorization using library as described in the examples.
Application is redirecting me to the login page in the Safari view and I am able to successfully login and be redirected to my iOS app after confirming that I want to be redirected on the popup window.
However when I don't confirm and hit 'Cancel' instead of 'Open' on this modal and navigate manually back to my app and try to login again this time confirming the redirection to my app after successful login - I get -10 OAuthSwift error.
I cannot resolve this issue, after restarting the app it works normally again, but the issue can still be reproduced.
Direct steps:
I have already tried to delete my retained oauth2swift object but it doesn't work.
Any clues why this happens?
OAuth Provider? (Twitter, Github, ..):
Keycloak
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)
other: (13.1)
objective c
@fbaumgart commented on GitHub (Feb 7, 2022):
resolution: you need to set the oauthswift.authorizeURLHandler property :)
@yaoligang123 commented on GitHub (Jun 27, 2023):
Hi @fbaumgart
resolution: you need to set the oauthswift.authorizeURLHandler property :)
How to set the oauthswift.authorizeURLHandler property :)?
Can you provide example code?Thanks.
@fbaumgart commented on GitHub (Jun 30, 2023):
@yaoligang123 sorry, I'm no longer in possession of this code, but documentation provides some examples and clarification:
https://github.com/OAuthSwift/OAuthSwift#handle-authorize-url