Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2005

Tip: Looking for answers? Try searching our database.

Get the current SecurityToken i a WebMethod

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Henrik Skak Pedersen - 25 Nov 2005 18:21 GMT
Hi,

How do I get the current SecurityToken in a WebMethod?

Thanks Henrik.
Pablo Cibraro - 27 Nov 2005 13:21 GMT
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.
Steven Cheng[MSFT] - 28 Nov 2005 05:11 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.