I'm using STTwitter for twitter Oauth in iOS. Following is the URL used to redirect to the browser...
https://api.twitter.com/oauth/authorize?oauth_callback_confirmed=true&oauth_token_secret=XXXXXXXXXXXXXXXHas0lAxA3&force_login=1&oauth_token=YYYYYYYYYYYYYY
Is it possible to redirect to the iOS Twitter application instead of redirecting to browser for performing Oauth? If so what should be the URL for redirecting?
Thanks in advance.
Use a callback URL with a custom URL scheme for your app.
See also this answer.
Related
We are developing an electron app using and reactjs and node. Google oauth2 is being used for signup and login. But we are not able to get back to the app after successful login. What is the right way to solve this. What is the return url that is to be given to return the user to the app?
Thanks in advance.
Ajey, I am also working in the same project. We are using the electron react boilerplate (https://github.com/chentsulin/electron-react-boilerplate) to build the application. We are not using any separate window for authentication. When click on the signin button, the application will redirect to the google authentication page and redirect to the url provided in the "redirect_uri" parameter.
I would want to know how can I make user login OAuth via a UIWebView instead of Safari browser.
I've implemented Twitter OAuth with Deployd as backend, after making login with Twitter it redirects to my API url for a POST request and get stuck. It's not redirecting back to the application.
So any approach or suggestion would be greatly appreciated.
Any reason why you're not using the Fabric SDK? It makes it really easy to login a user via Twitter and it checks automatically if an account is set up in the System Settings. If there isn't one, it'll present the OAuth login option. In this way your user doesn't have to leave your app which is great.
I have found an example that shows login via Twitter using Reverse Auth. But I want something like this
NOTE: NOT open in Safari
Is there any example or tutorial talking about this?
I use this library to do web view Oauth login, this should make the job done:
https://github.com/fhsjaagshs/FHSTwitterEngine
Is there any method to login facebook comments embbedded in UIWebView using SSO?
In my case ,I am developing website and native ios app.
so I should embbed page like below link in my native app.
http://techcrunch.com/2012/09/19/facebook-contact-sync/
this page is using facebook comments.
If I ask users one more login, this problem can be solved.
But I want to login through facebook SSO.(Don't want to ask one more user's id and password)
Facebook-ios-sdk with embedded UIWebView
this link showing me how to login my comments box in UIWebView using ios SDK...
is Answer at this link possible?
Get Access token using iOS facebook SDK,
and passing this token to java script at page to authentication user at comments box.
If it is possible, How to pass access token that acquired from ios SDK to java script SDK ?
or Does there exist another method?
I think easiest way to implement this is make session cookies for webview using access token.
but people saying this is impossible.
Loading iPhone webviews as an Facebook SSO authenticated user?
is it still impossible at new version of SDK?
Thanks in advance!
I'm trying to achieve following: I have facebook authentication on my web app. I want to return back to PhoneGap application after authentication is done.
The authentication flow works just fine. But returning to app should be done by providing a redirect url to facebook authentication URL. The problem is that I don't know what's the URL.
I've tried custom URL scheme, which works when authentication flow is executed in external Mobile Safari window. But in this case, the authentication is set to the Safari session, not for the Web App.
If external window is not used, but the authentication is done in Web App, the custom URL scheme won't work.
I have a hint this could be done with PhoneGap ChildBrowser plugin. That's the last possible option I want to try
If the only possible solution is ChildBrowser, I haven't found any good tutorial or instructions how this should be done. Any advice on that?
please give solution if any one have better example
Phonegap released a plugin for connecting to facebook: https://github.com/davejohnson/phonegap-plugin-facebook-connect