UsernameTokenManager Question



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


.



Relevant Pages

  • Always get update and validation errors
    ... I've been trying to solve this problem for 5 months now with MS support ... nor can I ever use the windows update tool to manually look for updates. ... I can validate using the downloadable local validator - works perfectly, ... If I'm logged on as Admin, I can a) create a new user account with admin ...
    (microsoft.public.windowsupdate)
  • Re: How to validate Admin account?
    ... I could able to logon to windows as an Admin with blank password.But when I ... I need not validate whether the user is an admin or not I just need to ... I need to validate the user account. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: How to validate Admin account?
    ... I could able to logon to windows as an Admin with blank password.But when I ... I need not validate whether the user is an admin or not I just need to ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Update not working
    ... AumHa VSOP & Admin; DTS-L.org ... jodi wrote: ... update so I click to update ie loads and goes to validate it validates then ...
    (microsoft.public.windowsupdate)