pass logged on user details into url

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default pass logged on user details into url

    Hi,

    I am working with users on an intranet. I now want to open a URL so
    that instead of the user entering their NT login and password, it
    automatically enters that user's details based on that user logged in.
    the url is in the form -
    [url]http://username:password@www.test.com[/url]

    Can any one point me to a script/tutorial that gets these user details
    based on the user logged in.

    I have tried the following in my app, but can not seem to get it to
    work.
    <identity impersonate="true"/>
    <authentication mode="Windows" />

    I have also tried the 'System.Net.CredentialCache.DefaultCredentials',
    but no luck. How do I pass in the password.

    Thanks for all help.
    kieran Guest

  2. Similar Questions and Discussions

    1. I want asp.net to act as a different user than the one that is currently logged on IS THIS POSSIBLE!!!
      Hi James, were you able to resolve your problem? I'd be interested to know how you achieved this. Basically I have the same set up as you. I want...
    2. Best way to remember a logged in user
      Hi All, What is the best way to use a cookie to remember a logged in user? Would you store the username and password in two separate cookies? ...
    3. Check if user is already logged in
      Hi, i have a website , on wich users have to log in credentials are checked against mysql db some session vars are set during login for use...
    4. Recognise a logged in user
      Hi How do I recognise a logged in user on a Windows network. The clients are running XP/IE6. Server is NT Server 2000 / IIS. The Situation...
    5. Logged in user?
      I need some asp code that can give me the user that is logged on to the PC, can anyone help? Regards Betina
  3. #2

    Default Re: pass logged on user details into url

    I think you should be using integrated windows authentication, the authentication you suggest is basic, and IE doesn't work with passing the username/password in the url anymore (guess they saw it as pretty insecure, and it is). To add to this, there is no way to get the password of the logged on user from a browser (could you imagine what that would cause?..even on an intranet!). Even if you could pass the credentials in the url, they would still have to enter that info it at some point. Integrated windows authentication fixes all of this, works only with IE, but it does work, and you can pass that information all day and the user doesn't have to enter anything.

    --Michael

    "kieran" <kieran5405@hotmail.com> wrote in message news:b39796b3.0408180328.1ba5b481@posting.google.c om...
    > Hi,
    >
    > I am working with users on an intranet. I now want to open a URL so
    > that instead of the user entering their NT login and password, it
    > automatically enters that user's details based on that user logged in.
    > the url is in the form -
    > [url]http://username:password@www.test.com[/url]
    >
    > Can any one point me to a script/tutorial that gets these user details
    > based on the user logged in.
    >
    > I have tried the following in my app, but can not seem to get it to
    > work.
    > <identity impersonate="true"/>
    > <authentication mode="Windows" />
    >
    > I have also tried the 'System.Net.CredentialCache.DefaultCredentials',
    > but no luck. How do I pass in the password.
    >
    > Thanks for all help.
    Raterus Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139