我在我的网站上使用 google provisioning api。我在谷歌和一些用户上创建了一个域。现在我想使用 AppsService 类对它们进行身份验证。
AppsService service = new AppsService("domain", "admin username", "admin password");
UserEntry user = service.RetrieveUser("username");
这两条线我到处找。但我想用他的用户名和密码对用户进行身份验证。
最佳答案
Mayank,如果你想用他的个人用户名和密码验证用户,请尝试Google Oauth2.0 ,不是上面的代码,它是 2-legged oauth 1.0.您发布的代码用于整个域身份验证。个人用户请使用OAuth2.0,登陆后弹出登陆页面,获取token进行后续操作。
关于c# - 如何使用 .net 的 Google.GData.Apps 对用户进行身份验证?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15965521/