For Programmers: Free Programming Magazines  


Home > Archive > Microsoft Webservices > March 2005 > Storing/Accessing XML for the UsertokenManager









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Storing/Accessing XML for the UsertokenManager
Dave Friedel

2005-03-25, 4:00 am

I read through the WS2 samples but I am still fuzzy on how to access the
settings I need to validate my users passwords.

Specifically, I do not know how to tell which hostheader is being accessed
in the UsernameTokenManager. I typically run many virtual directories where
a setting in the Web.Config points to a configuration file on the local
server (still paranoid about giving reachable access to a file with
passwords etc.) Since many virtual directories CAN read the same
configuration file - I use the host header to decipher the location within
the xml file to retrieve my settings. As a temporary work around - for the
host header issue - I pass the header along with the username which
circumvents the problem.

But now I have quite abit of accesses to a file and I would like to take
advantage of caching. In my Application Start - I use the CacheDependancy
on a file where it detects of the file changes and updates (a great
feature) - but I am lost to how to access the cache instance on the server.
I can't seem to access the "Context" object - am I missing an object that
allows me to use cache from within the UsertokenManager?

regards,
Dave


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com