首页 > 解决方案 > 为 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 会处理它?在安卓奥利奥上测试。

有什么建议么?

标签: androidtwitterpaypallinkedin-apiappauth

解决方案


推荐阅读