Hi,
in VisualBasic I use MSXML to send HTTP request. I know that in intranet,
the IE sends user token in the request header to enable single-sign-on. I
would like to get this token from my app and send it with my request for the
same reason. How can I get the correct token and format it accordingly?

Thank you,
Jan

Re: Send current user token to IIS server by Jan

Jan
Fri Aug 25 15:18:54 CDT 2006

Nobody knows the API to get the current user token?


"Jan Kucera" <kucera@lupacovka.cz> wrote in message
news:43CB9919-FDDE-452C-8CC2-0CA1BCD62070@microsoft.com...
> Hi,
> in VisualBasic I use MSXML to send HTTP request. I know that in intranet,
> the IE sends user token in the request header to enable single-sign-on. I
> would like to get this token from my app and send it with my request for
> the same reason. How can I get the correct token and format it
> accordingly?
>
> Thank you,
> Jan



Re: Send current user token to IIS server by Roger

Roger
Sat Aug 26 01:18:08 CDT 2006

I doubt that your issues is gettig the token but in marshalling it in way
that the remote wants. Many of us are probably sitting back thinking
"what the . . . " is this app design actually trying to do? Most often
if communicating within a domain context where the token would be
of any use (i.e. would be understood) one does not need to manipulate
them to have an authenticated remote connection as the subsystems will
handle that for you (unless perhaps you have written a service that is at
the other end and that is not leveraging what Windows provides)

I would suggest that you post into one of the MSDN forums.


"Jan Kucera" <kucera@lupacovka.cz> wrote in message
news:522F668D-26F4-4919-A1FF-AB7D857B0655@microsoft.com...
> Nobody knows the API to get the current user token?
>
>
> "Jan Kucera" <kucera@lupacovka.cz> wrote in message
> news:43CB9919-FDDE-452C-8CC2-0CA1BCD62070@microsoft.com...
>> Hi,
>> in VisualBasic I use MSXML to send HTTP request. I know that in intranet,
>> the IE sends user token in the request header to enable single-sign-on. I
>> would like to get this token from my app and send it with my request for
>> the same reason. How can I get the correct token and format it
>> accordingly?
>>
>> Thank you,
>> Jan
>
>



Re: Send current user token to IIS server by Jan

Jan
Sat Aug 26 05:45:59 CDT 2006

Okay, I will. Thank you for your answer.
What I'm trying to do is to make a XmlHttp request with the token set as the
IE sets when in local network. The reason is simple, I do that from VBA and
the client has requested to have single-sign-on, so that he doesn't have to
provide his credentials in the application. As you can see this is not my
idea, but I have to try my best to ..try it.
Thanks for answer,
Jan

"Roger Abell [MVP]" <mvpNoSpam@asu.edu> wrote in message
news:u2QzidNyGHA.3512@TK2MSFTNGP04.phx.gbl...
>I doubt that your issues is gettig the token but in marshalling it in way
> that the remote wants. Many of us are probably sitting back thinking
> "what the . . . " is this app design actually trying to do? Most often
> if communicating within a domain context where the token would be
> of any use (i.e. would be understood) one does not need to manipulate
> them to have an authenticated remote connection as the subsystems will
> handle that for you (unless perhaps you have written a service that is at
> the other end and that is not leveraging what Windows provides)
>
> I would suggest that you post into one of the MSDN forums.
>
>
> "Jan Kucera" <kucera@lupacovka.cz> wrote in message
> news:522F668D-26F4-4919-A1FF-AB7D857B0655@microsoft.com...
>> Nobody knows the API to get the current user token?
>>
>>
>> "Jan Kucera" <kucera@lupacovka.cz> wrote in message
>> news:43CB9919-FDDE-452C-8CC2-0CA1BCD62070@microsoft.com...
>>> Hi,
>>> in VisualBasic I use MSXML to send HTTP request. I know that in
>>> intranet, the IE sends user token in the request header to enable
>>> single-sign-on. I would like to get this token from my app and send it
>>> with my request for the same reason. How can I get the correct token and
>>> format it accordingly?
>>>
>>> Thank you,
>>> Jan
>>
>>
>
>


Re: Send current user token to IIS server by Roger

Roger
Sat Aug 26 11:44:51 CDT 2006

Well, I am not active much as a general dev these days, but I am
wondering why you do not set a reference to the IE shadoc and
use it's methods and then access the result using the dom.

"Jan Kucera" <kucera@lupacovka.cz> wrote in message
news:6422AD48-82B6-4266-9DC2-FA7DAB572F3C@microsoft.com...
> Okay, I will. Thank you for your answer.
> What I'm trying to do is to make a XmlHttp request with the token set as
> the IE sets when in local network. The reason is simple, I do that from
> VBA and the client has requested to have single-sign-on, so that he
> doesn't have to provide his credentials in the application. As you can see
> this is not my idea, but I have to try my best to ..try it.
> Thanks for answer,
> Jan
>
> "Roger Abell [MVP]" <mvpNoSpam@asu.edu> wrote in message
> news:u2QzidNyGHA.3512@TK2MSFTNGP04.phx.gbl...
>>I doubt that your issues is gettig the token but in marshalling it in way
>> that the remote wants. Many of us are probably sitting back thinking
>> "what the . . . " is this app design actually trying to do? Most often
>> if communicating within a domain context where the token would be
>> of any use (i.e. would be understood) one does not need to manipulate
>> them to have an authenticated remote connection as the subsystems will
>> handle that for you (unless perhaps you have written a service that is at
>> the other end and that is not leveraging what Windows provides)
>>
>> I would suggest that you post into one of the MSDN forums.
>>
>>
>> "Jan Kucera" <kucera@lupacovka.cz> wrote in message
>> news:522F668D-26F4-4919-A1FF-AB7D857B0655@microsoft.com...
>>> Nobody knows the API to get the current user token?
>>>
>>>
>>> "Jan Kucera" <kucera@lupacovka.cz> wrote in message
>>> news:43CB9919-FDDE-452C-8CC2-0CA1BCD62070@microsoft.com...
>>>> Hi,
>>>> in VisualBasic I use MSXML to send HTTP request. I know that in
>>>> intranet, the IE sends user token in the request header to enable
>>>> single-sign-on. I would like to get this token from my app and send it
>>>> with my request for the same reason. How can I get the correct token
>>>> and format it accordingly?
>>>>
>>>> Thank you,
>>>> Jan
>>>
>>>
>>
>>
>



Re: Send current user token to IIS server by Jan

Jan
Sun Aug 27 05:53:35 CDT 2006

Well that's quite interesting idea, am I able to query the dom for xpath?
Hm, or I could use LoadXml of MSXML and put the document.innerHTML into
it...
If there are not any compatibility issues with ie references, it could
indeed do what I need.
Thanks,
Jan


"Roger Abell [MVP]" <mvpNoSpam@asu.edu> wrote in message
news:e$Izv7SyGHA.2384@TK2MSFTNGP05.phx.gbl...
> Well, I am not active much as a general dev these days, but I am
> wondering why you do not set a reference to the IE shadoc and
> use it's methods and then access the result using the dom.
>
> "Jan Kucera" <kucera@lupacovka.cz> wrote in message
> news:6422AD48-82B6-4266-9DC2-FA7DAB572F3C@microsoft.com...
>> Okay, I will. Thank you for your answer.
>> What I'm trying to do is to make a XmlHttp request with the token set as
>> the IE sets when in local network. The reason is simple, I do that from
>> VBA and the client has requested to have single-sign-on, so that he
>> doesn't have to provide his credentials in the application. As you can
>> see this is not my idea, but I have to try my best to ..try it.
>> Thanks for answer,
>> Jan
>>