支持 "OAuth 2.0 for TV and Limited-Input Device Applications" .Net 客户端

Support for "OAuth 2.0 for TV and Limited-Input Device Applications" .Net Client

我找不到使用 "Drive API Client Library for .NET" 的 "OAuth 2.0 for TV and Limited-Input Device Applications" 身份验证流程的任何示例。不支持吗?有谁知道是否有人在另一个 api 中开发了这个? Google 是否会在 .net 客户端 api 中开发对此的支持?

用于电视和有限输入设备应用程序的 OAuth 2.0: https://developers.google.com/identity/protocols/OAuth2ForDevices

Drive API .NET 客户端库: https://developers.google.com/api-client-library/dotnet/apis/drive/v3

我从 GIT 下载了 API 源代码,发现解决方案实际上已经实现了。结果我不得不写这个:

credential = await GoogleWebAuthorizationBroker.AuthorizeAsync(authorizationCodeFlowInitializer,Scopes,"user",CancellationToken.None,null, new PromptCodeReceiver());

而不是这个:

credential = await GoogleWebAuthorizationBroker.AuthorizeAsync(authorizationCodeFlowInitializer,Scopes,"user",CancellationToken.None);

案件结案!