using Windows intergrated authentication with SqlRoleProvider in silverlight application -
i working on web application requires users put roles , given different permissions based on roles. can done using forms authentication , sqlroleprovider. but, application used internally within corporate intranet, , forms authentication forces users manually login every time want use application, using windows integrated autenthification looks more elegant, since users logged on corporate domain. there problem roles here, integrated authentication default uses roles built in users windows accounts (group membership , on..). application requires put users custom made roles. far roles concerned having database control more favorable solution. there way use windows integrated authentification (for authentification) sqlroleprovider (for roles , user management)?
we've done in our application, have create own roleprovider , specify in web.config. can load roles whatever source like.
<rolemanager enabled="true" defaultprovider="myroleprovider"> <providers> <clear /> <add name="myroleprovider" type="mycompany.myroleprovider, myassembly" /> </providers> </rolemanager>
roleprovider http://msdn.microsoft.com/en-us/library/system.web.security.roleprovider.aspx
Comments
Post a Comment