Minggu, 23 Januari 2011

RIA Services and Authentication - Part 2 (Using Roles)


When I posted my RIA Services and Authentication post earlier in the week (which I highly recommend checking out first if you haven't), the first comments/tweets I saw indicated people also want to see roles working in the application. So I decided to add this bit of functionality, both in the Book Club application and the supporting functionality in the RIAEssentials framework, so you can use it easily in your own applications as well.


From a scenario perspective, what I am going to do is require an Admin role to browse and add book club members.




Adding and Using Roles


The first step is to update the AuthenticationService implementation I showed earlier to add roles into the authentication process. It only requires quite literally a couple of minor tweaks, th. The added lines are shown in bold:



[Full post continued here...]

Tidak ada komentar: