在.Net中自动登录gmail的源代码 [英] Source Code for Auto login to gmail in .Net

查看:67
本文介绍了在.Net中自动登录gmail的源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个内联网应用程序,用asp.net C#编写,



用户进入内部网,使用他们的域名,用户名和密码,我们使用谷歌应用程序和我公司发送电子邮件的Gmail,我有一个允许用户连接到Gmail网址的按钮,用户为其Gmail帐户使用相同的用户名和密码,如何编写代码以便在点击此按钮时自动登录Gmail询问用户名和密码。

I have an intranet application, written in asp.net C#,

users enter the intranet, using their domain, Username and password, we use Google applications and Gmail for our company''s email, I have a button that allow user connect to Gmail URL, Users use same username and password for their Gmail account, how can I write a code to auto Login to Gmail when their click this button, without asking the username and password.

推荐答案

我做了一些研究(谷歌),我怀疑你不能这样做,因为Gmail需要完整的用户名和密码来自用户。当您登录Windows时,它只会对您的密码进行编码并将其与存储的值进行比较,但明文版本不会保留在任何地方,因此以后无法找到它以便访问Gmail。
I have done a little research (Google) and I suspect that you cannot do this since Gmail requires the full username and password from the user. When you login to Windows it merely encodes your password and compares it with the stored value, but the clear text version is not kept anywhere so there is no way to find it later in order to get to Gmail.

这篇关于在.Net中自动登录gmail的源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆