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 / August 2005

Tip: Looking for answers? Try searching our database.

Wrong end of the stick with authentication

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard Hopwood - 22 Aug 2005 11:03 GMT
I have a feeling I've not quite got it with this WSE authentication.
I'm authentication my users in a custom UsernameTokenManager against a
legacy application we develop. I authenticate by calling a login function in
my app which returns me a session ID, The problem is that once I've come out
of the WSE authentication SoapExtention and into my actual function that is
being called I need to pass that ID in the function call - how do I
comunicate between the authetication layer and the function call?

Thanks
Ric.
Pablo Cibraro - 23 Aug 2005 14:50 GMT
Hi Richard,
Maybe this solution can help you:

1. Create a CustomPrincipal deriving from GenericPrincipal
2. Add the SessionId property to that class

In the custom UsernameTokenManager

3. Create a CustomPrincipal object after authenticating to the user in the
custom UsernameTokenManager.
4. Assign the sessionID to that principal
5. Assign the principal to the Thread.CurrentPrincipal property.

In your function

6. Get the CustomPrincipal from the Thread.CurrentPrincipal property
7. Get the SessionId from that principal

I hope this can help you

Regards,
Pablo Cibraro
www.lagash.com

>I have a feeling I've not quite got it with this WSE authentication.
> I'm authentication my users in a custom UsernameTokenManager against a
[quoted text clipped - 9 lines]
> Thanks
> Ric.
Richard Hopwood - 23 Aug 2005 15:16 GMT
Thanks, this looks like exactly what I was after.

Ric.

> Hi Richard,
> Maybe this solution can help you:
[quoted text clipped - 33 lines]
> > Thanks
> > Ric.

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.