使用satellizer在Twitter中使用Oauth2提供程序登录

问题描述 投票:5回答:2

我想建立一个用于Twitter的卫星登录。 但我不能说使用Oauth2.0是如何做到的。

我的功能在这里:

$authProvider.twitter({
  authorizationEndpoint: 'https://api.twitter.com/oauth/authorize',
  redirectUri: window.location.origin || window.location.protocol + '//' + window.location.host,
  scope: [],
  scopeDelimiter: ' ',
  type: '2.0',
  clientId: '[myClientID]'
});

我错了什么?

angularjs oauth-2.0 twitter-oauth
2个回答
0
投票

我想你在这里错过了一把钥匙

url: 'URL TO BACKEND SERVICE',


0
投票

https://twittercommunity.com/t/getting-started-with-oauth-2-0/2338

根据这篇文章,twitter支持Oauth 2.0进行仅限应用程序的身份验证。 基于用户的身份验证必须使用Oauth 1.0流程。

我也使用Satellizer。 它是最新的,并具有良好的Twitter OAuth 1.0实现。

© www.soinside.com 2019 - 2024. All rights reserved.