Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

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

Closed
stevenho0811 opened this issue Mar 16, 2018 · 1 comment
Closed

Comments

@stevenho0811
Copy link

stevenho0811 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
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 as completed Apr 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants