Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Role Based Security in Serviced Components


Message #1 by "Karthikeyan Palanivel" <karthikeyan_p@i...> on Sat, 16 Nov 2002 16:46:41 +0530
All,

	How do I implement role based code access security in Serviced
Components

	Say 

	I have two local user groups "Managers" and "Clerks". I have an
assembly with a class derived from "ServicedComponent" having a function
"CreateAccount".
	I have a separate ASP form (Digest Authentication) calling this
function.All I want is this function to be called by users belonging to
"Managers" role.

	I did

	[SecurityRole("MACHINENAME\\Managers")]
	public void CreateAccount()
	{

	}

	But this doesn't seem to work (No error but can be called by any
users)

	Can someone send me the complete code (both client & server).
	Thanks,

Regards
Karthikeyan Palanivel



  Return to Index