UsernameTokenManager Question
- From: "roger" <danish@xxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 15:11:36 +0500
Hello,
I've got a different scenario then the samples i've seen on the web. I've
got a web method say DownloadFile(string FilePath) and i want to validate
that the user has "Admin" role to download a file from this path. My web
service is configured to use a policy file that states that the call to
method must be signed using a username password and calling the method
DownloadFile requires "Admin" Role. I've also written a custom
UsernameTokenManager to validate the username and password. Now the problem
is i need to access the parameter (FilePath above) of my DownloadFile
because i need to check if this person has "Admin" rights on the file he is
trying to access then i'll add an "Admin" role to the IPrinciple object and
return from AuthenticationManager and the policy will do the rest. How do i
achieve this task
and Well i know that i can achieve this thing if i skip using a RoleBased
authentication using a policy and i validate the Role within DownloadFile,
but how can i achieve this using a policy file. ?
Best Regards
.
- Prev by Date: WSE 2.0, smart client, Username authentication, no x.509
- Next by Date: RE: WSE 2.0, smart client, Username authentication, no x.509
- Previous by thread: WSE 2.0, smart client, Username authentication, no x.509
- Next by thread: WSE2 Diagnostics - Tracing problem
- Index(es):
Relevant Pages
|