Sign in with Oauth2 on Twitter with satellites

I would like to create a login with a satellite for Twitter. But I can't guess how this is possible using OAuth2.0.

Here is my function:

$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]' }); 

How am I wrong?

+5
source share
2 answers

I think the key is missing here.

url: 'URL TO BACKEND SERVICE',

0
source

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

According to this post, Twitter supports Oauth 2.0 for application-only authentication. User authentication must use the Oauth 1.0 stream.

I also use Satellizer. This is pretty relevant and has an excellent OAuth 1.0 twitter implementation.

0
source

Source: https://habr.com/ru/post/1205783/


All Articles