Yar*_*Yar 5 c# console-application oauth-2.0 google-oauth
我正在尝试使用简单的 C# 控制台应用程序获取 Google 授权代码。整个过程非常简单:使用包含Client IdGoogle Oauth2 唯一端点的 url 发送请求,登录 Google 帐户,然后获取授权码:
string url = "https://accounts.google.com/o/oauth2/v2/auth?whatever";
Process.Start("chrome.exe", url); // open up browser so user can log in
// get the auth code from chrome
Run Code Online (Sandbox Code Playgroud)
如何从 Google Chrome 获取生成的代码并将其传递回我的应用程序?
| 归档时间: |
|
| 查看次数: |
2070 次 |
| 最近记录: |