我正在尝试实现链接身份验证。当我在var response
设置调试点时,我看到一个HTML代码,它是链接的身份验证窗口。
现在,我如何使用该代码并使用该代码弹出Linked-In身份验证窗口?
public async Task<ActionResult> GetResponseString()
{
var httpClient = new HttpClient();
var parameters = new Dictionary<string, string>();
var response = await httpClient.GetStringAsync("https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=123456789&redirect_uri=https%3A%2F%2Fwww.example.com%2Fauth%2Flinkedin&state=987654321&scope=r_basicprofile");
return View("Index");
}
的文档