How can I return the user to the login page if they click 'Cancel'? - twitter

I am using an OpenCart HybridAuth extension to allow users to login using their Social Media login credentials. This has been implemented correctly and a user is able to create a new account, however if I click the cancel button when prompted to give permission to the application, it leads me to a black page (URL Parameters: ?route=hybrid/auth&provider=Twitter):
How can I fix this so that it leads me back to either the login page?

Related

Facebook login on Apple CNA

Questions:
Is it possible to set up Facebook login for use in the CNA?
Does CNA documentation exist for developers?
Can you debug the CNA screen using any developer tools?
Details:
I have created a captive portal login page that uses an email submission form or a Facebook login button. The login button uses javascript as documented on Facebook's developer resources to open a window and log the user in.
Testing:
CNA: Clicking the Facebook sign in button redirects to the facebook login, after multiple clicks. Facebook login page allows submission of username and password but does not generate these entries from cookies. After submission, the page is blank and login is not completed.
Full Featured Browsers: In Safari, Chrome, Firefox, etc. the social sign is functioning and works as expected. All browsers redirect the user to the login page, the user may use the email submission button or the social sign to authenticate on the hotspot and redirected to a landing page. The problems only occur on the CNA.
Research:
Forums threads state that it's impossible to use Facebook login in this way but I'm not sold because Social Sign In seems to be doing exactly what I'm proposing. They claim to accomplish the login without using apps so I have to assume their using either a CNA browser or launching Safari directly. Some javascript is functional in the CNA but I'm unable to track down resources to explain exactly what the capabilities/limitations of the CNA are.
Thanks for any help on this issue

Safari won't wait for user for Google sign-in redirect to iOS application

In my application I am using Google SignIn as Login to my application. I am not using cocoa pods I am directly using frameworks by pasting in my project. I am configuring GIDSignIn class like below.
//Allowing to sign in through browser
self.googleSignIn.allowsSignInWithBrowser = YES;
self.googleSignIn.allowsSignInWithWebView = NO;
//Initiate sign in
[self.googleSignIn signIn];
When i clicks on Google SignIn button it will redirect me to Safari (Not SFSafariViewController) and asks for google account credentials, everything is working fine. Once i allow to get the application to use my basic profile data, a pop up will appear in Safari for redirecting to my application and if I selects open it will go back to my application (Proper redirect URL is given) with the basic profile information. But problem is when I don't select an option of the alert view in safari for redirecting. It will close the alert view by itself and i will be in safari and no information will be redirected to my application. How to make the alertview wait for user response?
It will ask for user permission and once allow is pressed i will get the following screen.
And now if i don't select anything, the alert view dismisses and stays in Safari. Only if i press "Open" it will take me to MyApplication and gets me user basic profile application. Please help me how to stop alertview getting dismissed by itself.

Automatic Login using Oauth

I have create a brand new MVC application using the Internet Template. I have set up the application to use Google to login and register.
All of this works as expected.
What i want to know is, is it possible to automatically log the user into the application after he registered,if he is logged into google at that time, in stead of redirecting him to the login page, so that he clicks the "Login with Google" button.
If you know that you're always going to be logging in with Google (and no other provider), you can set the redirect to go to the target of the "Login with Google" button. Just look at the link target (href) of that button, and change your redirect for unauthenticated users to use that URL instead of the login URL. (You just have to make sure that it'll still be possible for a new user to register. :))

Logout issue in new Facebook SDK 3.2

I am using Facebook SDK 3.2 in my iphone Application, i have used FBLoginView to login and logout from Facebook. and two buttons: first to post content on user's wall and second to post content on Friend's wall. In both i am using FBWebDialog. when user starts application login page opens (in safari) and everything works fine.
But i am facing following Problems:
if user want to login using another facebook id, there is no option to do it, first user have to logout from his first facebook account in safari, and when he return back to the application only then user will get the Facebook login page to login again.
when user tap FBLoginView it will open safari, but after tapping loginView, if user want to come back in the application without logging in, there is no option to do that.
In posting action i am using FBWebDialog, if i have not logged in and try to open the FBWebDialog then in dialog it shows Facebook login page to login first, but after entering user info and password for Facebook it shows a message "An error occurred. please try again later." and in the dialog if we tap "Okay" button, it shows the user is logged in, but doesn't show the page to share content. really strange behavior.
plz Help!!!!!
any help will be appreciated.

How do I prevent the facebook login page from taking over my home page app?

I have a iPad home page app that I'm trying to integrate a facebook like button. Everything works fine if the user is already logged in, but if the user is not logged in the facebook login page takes over my app page and after login does not return to my app. Is there a way to make facebook login using an iframe?
My app is a web app not a native IOS app. It is setup with a manifest file and the user adds it to their home page. Because the app can have different URLs and all we want to do is provide like functionality, registering the app is not available to me.
What I want to know is there a way for facebook to open the login page in an iframe like the like dialog when the user clicks the like button? Right now I'm using the social plugin for the like button, but if the user isn't logged in to facebook the login page replaces my web app. Is there a way to make the login page use an iframe?
Wrapping it in a <div> worked for me

Resources