使用vue-authenticate将自定义url参数传递给oauth提供程序

时间:2019-12-16 17:28:54

标签: vue.js oauth instagram

是否可以将自定义URL参数传递到oauth授权页面? Instagram的格式为'app_id = xxxxx',而不是client_id,如下所示:https://developers.facebook.com/docs/instagram-basic-display-api/guides/getting-access-tokens-and-permissions

https://api.instagram.com/oauth/authorize
  ?app_id={instagram-app-id}
  &redirect_uri={redirect-uri}
  &scope={scope}
  &response_type=code
  &state={state}        //Optional

这是我尝试添加参数:

    instagram: {
      scope: ['user_profile', 'user_media'],
      requiredUrlParams: ['scope', 'app_id'],
      display: 'popup',
      redirectUri: 'https://localhost:8080/auth/instagram',
      response_type: "code",
      app_id: "444049xxxxxxxxx",

    },

结果是URL参数中的app_id为空: https://www.instagram.com/oauth/authorize?response_type=code&redirect_uri=https://localhost:8080/auth/instagram&scope=user_profile+user_media&app_id=

0 个答案:

没有答案