mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #89] WebView Localhost Redirects / Facebook & Google / Expirations #57
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#57
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 @stevejabs-unikey on GitHub (Aug 2, 2015).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/89
Have a few questions regarding some additional features:
1.) LinkedIn, among many networks, don't support custom url schemes that are not http or https. Right now I have hacked in some support for localhost in both my custom web view controller and in the OAuthSwift2 class to support localhost redirect_uri's. I noticed that you have a heroku app setup to assist you for that. Any chance you'll build support directly into this library?
2.) Facebook and Google seem to be doing their own custom versions of OAuth2. Any chance for support for either? Like my first question, I'm in the process of hacking in Google support. The main reason why I'd like to see support here is so that I can add multiple accounts of each to my app. Both right now in their SDKs only support one account.
3.) Will there be any future support for token expiration notification and requesting new tokens when they near their expiration dates?
@phimage commented on GitHub (Aug 8, 2015):
owner of project could have better answer but I can add some info
1/ you do the good job by hacking the web view
I think for security reason you must not use http(s) website provided by a framework like heroku that is not your own website
Owner of the website can keep all oauth token
Wiki page
for facebook I find in python some compliance hook
https://coveralls.io/files/822595316
3/ a) revoking token
there is RFC but not always followed
https://tools.ietf.org/html/rfc7009
So need an revoke url and the attribute name
b) refresh token
http://tools.ietf.org/html/rfc6749#section-1.5
http://tools.ietf.org/html/rfc6749#section-6
http://tools.ietf.org/html/rfc6749#section-10.4
expiration currently must be handled by you in
failurecallback, and reconnect then@phimage commented on GitHub (Nov 19, 2015):
f890cb9a5cand maybe work only with http scheme like LinkedIn (not tested with custom one)
https://github.com/dongri/OAuthSwift/wiki/API-with-only-HTTP-scheme-into-callback-URL
@phimage commented on GitHub (Dec 4, 2015):
3/ Wiki page on expiration
https://github.com/dongri/OAuthSwift/wiki/OAuth-2.0-Token-Expiration
maybe I will add an utility function to check expiration (or we can throw a specific exception for that...)
I think framework will never do it automatically because many oauth provider change the code or error message