Add support for Twitter OAuth1a "x_auth_access_type"
chez14 opened this issue · comments
Chris Qiang commented
Documentation Reference: https://developer.twitter.com/en/docs/authentication/api-reference/request_token
Based on the documentation, we can customize the login scope of the app. The scope definition must be provided when requesting token via x_auth_access_type
.
Reviewing the grant's OAuth1 flow code, we can either use providers.scope
, or we can add providers.custom-param.x_auth_access_type
to fill the x_auth_access_type
param.
Thank you.
simo commented
Hi, I pushed it here c6b76b7 but I need to add some tests for it.
In the meantime you can reference it as github:simov/grant
in your package.json and use it with either one of the two:
"twitter": {
"custom_params": {"x_auth_access_type": "read"}
}
"twitter": {
"scope": ["read"]
}
Chris Qiang commented
simo commented
Published in v5.4.21