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

callbackURL not work #3

Open
xujuvenile opened this issue Apr 13, 2020 · 0 comments
Open

callbackURL not work #3

xujuvenile opened this issue Apr 13, 2020 · 0 comments

Comments

@xujuvenile
Copy link

xujuvenile commented Apr 13, 2020

在config配置了callbackURL,实际未生效,

image

复现步骤:

  1. git clone https://github.com/eggjs/examples.git
exports.passportYuque = {
  key: '$yours',
  secret: '$yours',
  callbackURL: "自定义回调地址",
  authorizationURL: "yuqueHost/oauth2/authorize",
  tokenURL: "$yuqueHost/oauth2/token",
  apiURL: "yuqueHost/api/v2",
};

----- update ------

  1. config#callbackURL 没有找到引用的地方
  2. egg-passportmount方法,引用的是options,https://github.com/eggjs/egg-passport/blob/master/lib/passport.js#L58

也就是使用方法需为

  app.passport.mount('yuque', {
    callbackURL: "$你的回调地址",
  });
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

1 participant