Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirection not working on ios safari #169

Closed
elhachimi opened this issue Jun 23, 2015 · 6 comments
Closed

redirection not working on ios safari #169

elhachimi opened this issue Jun 23, 2015 · 6 comments

Comments

@elhachimi
Copy link

Login with google for instance goes into the whole process but get stuck on the redirection page from the backend, seems that postMessage is not sent to the new tab till the origin tab is in focus.
just posted a related question in so: http://stackoverflow.com/questions/31007374/window-postmessage-to-a-new-tab-in-ios-safari?stw=2

@elhachimi
Copy link
Author

this is fixed on ios 8

@NetanelBasal
Copy link

I have the same problem, did you found any solution to this?

@elhachimi
Copy link
Author

yes, the problem is that the auth_headers was not set properly, what i did is setting by hand after authenticate or submit login like this:

$auth.authenticate(provider)
        .then(function(resp) {
          ipCookie('auth_headers', {
            // save the token
            'Authorization': 'Token ' + resp['auth_token'],
            'uid': resp['uid'],
            'expiry': resp['expiry']
          });
        })

@NetanelBasal
Copy link

From where the ipCookie function?

@NetanelBasal
Copy link

I did this in ios 8.4 and it works fine but for some reason in 8.1 its not not seem to work, you have an idea why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants