Hi Henrik,
I think Pablo's suggestion on using the SoapContext.Current instance is
reasonable. However, instead of the SoapContext class, we should use the
RequestSoapContext class instead, like:
RequestSoapContext.Current.IdentityToken
The IdentityToken holds the clientside securityToken which is used for
Authorization.... Also, its actual type and value depend on the Security
Assertion you used for communication between client/service...
Thanks,
Steven Cheng
Microsoft Online Support

Signature
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: "Pablo Cibraro" <pcibraro@hotmail.com>
References: <ugOEE0e8FHA.476@TK2MSFTNGP15.phx.gbl>
Subject: Re: Get the current SecurityToken i a WebMethod
Date: Sun, 27 Nov 2005 10:30:56 -0300
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
Message-ID: <udcgGV18FHA.476@TK2MSFTNGP15.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices.enhancements
NNTP-Posting-Host: ol129-128.fibertel.com.ar 24.232.128.129
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.webservices.enhancements:7743
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices.enhancements
Hi Henrik,
You can get it using the property SoapContext.Current.IdentityToken
Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax
http://www.lagash.com
> Hi,
>
> How do I get the current SecurityToken in a WebMethod?
>
> Thanks Henrik.
Henrik Skak Pedersen - 28 Nov 2005 19:12 GMT
Hi Steven,
Thank you very much for your reply. That was just what I needed.
Thanks,
Henrik.
> Hi Henrik,
>
[quoted text clipped - 49 lines]
>>
>> Thanks Henrik.
Steven Cheng[MSFT] - 29 Nov 2005 01:08 GMT
You're welcome Henrik,
Have a good day!
Steven Cheng
Microsoft Online Support

Signature
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: "Henrik Skak Pedersen" <skak@community.nospam>
References: <ugOEE0e8FHA.476@TK2MSFTNGP15.phx.gbl>
<udcgGV18FHA.476@TK2MSFTNGP15.phx.gbl>
<53jWMp98FHA.3764@TK2MSFTNGXA02.phx.gbl>
Subject: Re: Get the current SecurityToken i a WebMethod
Date: Mon, 28 Nov 2005 20:12:21 +0100
Lines: 70
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <OEeRq#E9FHA.3592@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices.enhancements
NNTP-Posting-Host: 80.63.142.94
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.webservices.enhancements:7754
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices.enhancements
Hi Steven,
Thank you very much for your reply. That was just what I needed.
Thanks,
Henrik.
> Hi Henrik,
>
[quoted text clipped - 49 lines]
>>
>> Thanks Henrik.