mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #484] Callback for getting valid tokens or an error #316
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#316
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 @gasparuff on GitHub (Aug 20, 2018).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/484
Description:
I was using https://github.com/openid/AppAuth-iOS in my current iOS project but now I want to switch to OAuthSwift for better customization of the shown webview to log in. I have my own Networkclient implementation with RxSwift and a lot of logic, so I'd like to wrap my existing request with a function from which I receive the valid token in a callback. I don't want to build another
oauthswift.client.request(...), instead I just want something like this:Is there any way to do that?
OAuth Provider? (Twitter, Github, ..):
Custom OAuth provider
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
9.3 (Swift 4.1)
9.0 (Swift 4.0)
9.0 (Swift 3.2)
8.x (Swift 3.x)
8.0 (Swift 2.3)
7.3.1
other: (Please fill in the version you are using.)
objective c
@gasparuff commented on GitHub (Aug 23, 2018):
Ok it's quite simple actually. Just wrote a small helper function for that, in case anyone needs it...
@phimage commented on GitHub (Sep 12, 2018):
Yes for oauth2 you can do that
Thanks to respond to yourself.