Click here to Skip to main content
13,258,479 members (52,059 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have an intranet application, written in 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.
Posted 4-Dec-12 5:22am
wizardzz 4-Dec-12 10:31am
What part of this are you stuck on?
Richard MacCutchan 4-Dec-12 11:41am
The question is reasonably clear.
wizardzz 4-Dec-12 11:44am
You're right, it's a gimmecode, not actual help situation.
Richard MacCutchan 4-Dec-12 12:02pm
I disagree; OP is asking how to do something, not for source code.
wizardzz 4-Dec-12 12:03pm
Richard, did you, uh, did you read the title of the post?
Richard MacCutchan 4-Dec-12 12:08pm
Yes, and I also read the question which includes "how can I write a code to auto Login ...". That looks like a general request for help to me, which I have responded to below.
wizardzz 4-Dec-12 12:12pm
Richard, it is great that you answered. However, I do suggest that you look at the OP's previous 4 questions in QA, before interpreting what he wants. He is a habitual gimmecode'r and I was simply asking him to define the problem he had.
Richard MacCutchan 4-Dec-12 12:36pm
Ah, I was not aware of that. Mea culpa.
wizardzz 4-Dec-12 12:37pm
You were trying to help, no mistake by you.

You probably did end up helping him, so karma points!

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171114.1 | Last Updated 4 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100