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

Safari and iOS facebook login can't redirect back, but others can. #651

Closed
Steven0811 opened this Issue Mar 16, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@Steven0811
Copy link

Steven0811 commented Mar 16, 2018

I'm use Nuxt + feathers, and I want trying Facebook login feature by feathers authentication, and It's works on Chrome and Firefox not any problem, but only Safari and iOS's Safari, when server direct the Safari to Facebook , Facebook asks me to continue next step, just stuck in here, nothing happened, and stay same "continue page", iOS version show up an error was occurred, It's seems redirect or something wrong, when error occurred, I trying refresh my website that have been login, but just can't back to my redirect page.

Sorry for my bad English.

screen shot 2018-03-16 at 7 13 32 pm

stuck in here, press 'OK' nothing happened.

img_1258

and iOS error.

image

flash an error in millisecond.

// authentication.js

  app.configure(authentication(config));
  app.configure(jwt());
  app.configure(local());

  config.facebook.successRedirect = 'back';
  config.facebook.failureRedirect = 'back';

  app.configure(oauth2(Object.assign(
    {
      name: 'facebook',
      Strategy: FacebookStrategy,
    },
    config.facebook,
  )));

    "facebook": {
      "clientID": "myclientID",
      "clientSecret": "myclientSecret",
      "scope": [
        "public_profile",
        "email"
      ],
      "profileFields": [
        "id",
        "displayName",
        "first_name",
        "last_name",
        "email",
        "gender",
        "profileUrl",
        "birthday",
        "picture",
        "permissions"
      ]
    },
    "cookie": {
      "enabled": true,
      "name": "feathers-jwt",
      "httpOnly": false,
      "secure": false
    }

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working):
"@feathersjs/authentication": "^2.1.1"
NodeJS version:
8.9.4
Operating System:
macOS 10.13.3 (Server Environment : ubuntu 14.04 )
Browser Version:
Safari Version 11.1 (13605.1.33.1.2)

@daffl

This comment has been minimized.

Copy link
Member

daffl commented Mar 20, 2018

Can you try if this works with a plain passport-oauth + Express setup?

@daffl daffl closed this Apr 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.