android - 为 Twitter、Paypal 和 Linkedin 使用 AppAuth 登录
问题描述
我无法成功使用其中任何一个。
推特配置
{
"client_id": "",
"redirect_uri": "https://callback.com/landing/twitter/login",
"authorization_scope": "read",
"discovery_uri": "",
"authorization_endpoint_uri": "https://api.twitter.com/oauth/authorize",
"token_endpoint_uri": "https://api.twitter.com/oauth/token",
"registration_endpoint_uri": "",
"user_info_endpoint_uri": "https://api.twitter.com/1.1/account/verify_credentials.json",
"https_required": true
}
推特的错误是
{
"client_id": "",
"redirect_uri": "https://callback.com/landing/paypal/login",
"authorization_scope": "openid email phone address profile",
"discovery_uri": "",
"authorization_endpoint_uri": "https://www.paypal.com/signin/authorize",
"token_endpoint_uri": "https://api.paypal.com/v1/oauth2/token",
"registration_endpoint_uri": "",
"user_info_endpoint_uri": "https://api.paypal.com/v1/oauth2/token/userinfo",
"https_required": true
}
Paypal 我可以打开页面并登录。授权码交换失败。
{
"client_id": "",
"redirect_uri": "https://callback.com/landing/linkedin/login",
"authorization_scope": "r_basicprofile r_emailaddress rw_company_admin w_share",
"discovery_uri": "",
"authorization_endpoint_uri": "https://www.linkedin.com/oauth/v2/authorization",
"token_endpoint_uri": "https://www.linkedin.com/oauth/v2/accessToken",
"registration_endpoint_uri": "",
"user_info_endpoint_uri": "https://api.linkedin.com/v2/me",
"https_required": true
}
登录为linkedin 进行,并打开重定向页面,其中包含url 中的代码。流动停在那里。那么我需要在服务器上捕获它吗?或者 AppAuth 会处理它?在安卓奥利奥上测试。
有什么建议么?
解决方案
推荐阅读
- go - 正确的 websocket 连接关闭
- c# - XmlSerializer '不支持编译 JScript/CSharp 脚本'
- php - php - 数组元素编辑
- c# - 如何在多线程环境中只运行一次代码?
- ios - 以编程方式录制 iOS 屏幕/音频的指针
- r - 使用 vlookup 值在数据框中添加新列
- python - 如何使用python生成多个文件路径并将它们保存到excel中
- android - 如何在片段和适配器中使用 Collections.sort()?
- python - 为什么我在 django 3.2 中没有出现反向匹配错误?
- java - 为什么 Java Message Digest 使用术语更新而不是添加?