c# - 从 C# 与 google appengine 交互

标签 c# google-app-engine authentication

我正在编写一个 google appengine 应用程序,它存储数据并有一个网络前端。我希望能够在 C# 程序中提取这些数据。这意味着我需要对站点进行身份验证(用户必须登录才能查看数据)。我怎样才能像这样进行身份验证?我尝试在 WebClient 上设置凭据,但我一直在获取 google 登录页面。

WebClient client = new WebClient();
client.Credentials = new NetworkCredential("username", "password");
//should it be username@gmail.com ??

client.BaseAddress = "http://nosoperor-internal.appspot.com";

String s = client.DownloadString("/bank");
//s now contains the google login page, unfortunately

最佳答案

我在这个博客中找到了答案:

Accessing authenticated Google App Engine services from a .NET CF client

它有效^^

关于c# - 从 C# 与 google appengine 交互,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2307500/

相关文章:

ios - 如何使用 UserDefaults 来保存登录状态?

authentication - Play Framework 句柄授权而不是身份验证

c# - 通用接口(interface)上的代码约定问题

c# - Blazor 链接 - 如果有 onclick 方法,则禁用 href

c# - MarkupString属性能否将自定义组件的字符串转换为DOM中的HTML元素

c# - MasterPage 中的 ValidationSummary 隐藏成功标签

java - App Engine 和 Commons FileUpload

java - 技术栈建议 : Google App Engine, FLEX、GraniteDS (Tide)、Java、Spring

python - 如何修改数据库中已经迁移的模型?

python - 如何检测 Blobstore 条目是否是图像,以便 get_serving_url 可以工作?