Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
oAuth 2.0 Google API asp.net,来自access\u令牌_Asp.net_Google Drive Api_Google Oauth - Fatal编程技术网

oAuth 2.0 Google API asp.net,来自access\u令牌

oAuth 2.0 Google API asp.net,来自access\u令牌,asp.net,google-drive-api,google-oauth,Asp.net,Google Drive Api,Google Oauth,我正在尝试将google drive集成到我的asp.net应用程序中。 我在客户端使用google file picker(经过身份验证后)来选择文件id。 那么我有两个变量: 文件ID 访问令牌 我会直接从谷歌硬盘下载这个文件到我的服务器上 我的想法是将这两个变量发送到我的服务器(通过ajax),然后使用GoogleDrive库下载文件数据并将其存储到我的服务器 我的问题是,在没有刷新令牌的情况下,如何使用access\u token变量对服务器上的google服务进行身份验证 谢谢“我

我正在尝试将google drive集成到我的asp.net应用程序中。 我在客户端使用google file picker(经过身份验证后)来选择文件id。 那么我有两个变量:

  • 文件ID
  • 访问令牌
我会直接从谷歌硬盘下载这个文件到我的服务器上

我的想法是将这两个变量发送到我的服务器(通过ajax),然后使用GoogleDrive库下载文件数据并将其存储到我的服务器

我的问题是,在没有刷新令牌的情况下,如何使用access\u token变量对服务器上的google服务进行身份验证

谢谢

“我如何验证…” 您不需要进行身份验证。一旦您有了一个访问令牌,您只需将其包含在http请求的“Authentication:bearer”头中即可