Re: Username & Password as parameters
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 21 Sep 2006 23:17:16 -0400
I don't believe that this is the right solution. If windows
authentication is being used on the server side to identify the caller, then
you need to impersonate that caller. You can do this by setting the
scheduled task to run under the username/password you want to impersonate.
Then, on your HttpWebRequest instances, you would set the
UseDefaultCredentials property to true. This will take use the credentials
of the currently logged in user (the one you specify for your scheduled
task) and use those to identify yourself against your site.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"Michael Nemtsev" <nemtsev@xxxxxxx> wrote in message
news:1799a79b3ae9058c8abe5e0bfce24@xxxxxxxxxxxxxxxxxxxxxxx
Hello kvicky,
Don't send and keed pass in plain text, send the hash value of you pass
k> Thanks for your response.
k> Can you be more specific, what do you mean by hashofPassword
k> Thanks
k> K
k> Michael Nemtsev wrote:
k>
---Hello kvicky,
smth like
http://yousite/youpase.asmx?User=<userName>?Pass=<hashOfPass> and
parse it receiver
k> I am trying to set a scheduled task for one of my ASP.net
application
k> that I developed on a monthly basis. This application requires a
k> login authentication. I am sending the url of the login page in
the
k> Windows scheduled task. But I also want to send the username and
k> password as Parameters (that is identified through windows
k> authentication). and automatically assigned these parameters to
k> loging into the application and conduct my operation.
k>
k> The problem here is I am not getting any idea as how to send the
k> login information as parameters in the url assigned to the
schedule
k> task.
k>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour
"At times one remains faithful to a cause only because its opponents
do not cease to be insipid." (c) Friedrich Nietzsche
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour
"At times one remains faithful to a cause only because its opponents do
not cease to be insipid." (c) Friedrich Nietzsche
.
- References:
- Re: Username & Password as parameters
- From: kvicky
- Re: Username & Password as parameters
- From: Michael Nemtsev
- Re: Username & Password as parameters
- Prev by Date: Re: Learning with command-line vs IDE
- Next by Date: Re: Writing update back to MSAccess table?
- Previous by thread: Re: Username & Password as parameters
- Next by thread: How do I copy datatable from one dataset to another.
- Index(es):
Relevant Pages
|