Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET
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.
Posted 4-Dec-12 5:22am
Comments
wizardzz at 4-Dec-12 10:31am
   
What part of this are you stuck on?
Richard MacCutchan at 4-Dec-12 11:41am
   
The question is reasonably clear.
wizardzz at 4-Dec-12 11:44am
   
You're right, it's a gimmecode, not actual help situation.
Richard MacCutchan at 4-Dec-12 12:02pm
   
I disagree; OP is asking how to do something, not for source code.
wizardzz at 4-Dec-12 12:03pm
   
Richard, did you, uh, did you read the title of the post?
Richard MacCutchan at 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 at 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 at 4-Dec-12 12:36pm
   
Ah, I was not aware of that. Mea culpa.
wizardzz at 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
good
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.
  Permalink  

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

  Print Answers RSS
0 Marcin Kozub 310
1 OriginalGriff 248
2 Sergey Alexandrovich Kryukov 215
3 Richard MacCutchan 202
4 Praneet Nadkar 197
0 OriginalGriff 8,048
1 Sergey Alexandrovich Kryukov 7,287
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,910


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 4 Dec 2012
Copyright © CodeProject, 1999-2014
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