【发布时间】:2019-05-06 13:01:48
【问题描述】:
由于某种原因,我无法通过在 iOS 12 上进行重定向来重定向到 Oauth LinkedIn 页面,但它适用于 Android 和 UWP
我尝试在后端和 HTML 前端进行重定向,但均无效
private void LoginWithLinkedIn()
{
string clientID = WebConfigurationManager.AppSettings["LinkedInClientID"].ToString();
string url = string.Format("https://linkedin.com/oauth/v2/authorization?response_type=code&client_id={0}&redirect_uri={1}&state=fooobar&scope=r_liteprofile%20r_emailaddress%20w_member_social",
clientID, HttpUtility.UrlEncode("https://xxxxxxxxxx.azurewebsites.net/pwa/linkedin.aspx"));
Response.Redirect(url);
}
不知道为什么它可以在Android 和 Windows 上运行,但在 iOS 12 上却没有任何作用。
【问题讨论】:
标签: ios oauth progressive-web-apps