how frequently does the letter t appear in:
okay, so in my last blog, i showed how to configure an application made with visual studio lightswitch to use and implement access control following windows authentication. in this blog, i will show how to configure the same application to use forms authentication.
i start off by opening the application i have been working on, and by the way, i have added a few things here and there to it in between blogs.
first, i added several new access controls and enabled them by checking the “granted for debug” checkbox for each. to put simply, i have set these properties to true, so that when i run, the logged in user can perform all the actions i have indicated. let’s illustrate by unchecking the canreadpatient rule and running the application.
you will see here two things:
- the current user can see the patient screen, because we have not set that in the access control. we are still allowing the user to see the patient screen.
- but the current user cannot see the patient entity.
this illustrates how lightswitch implements access control on the screen and on the entity levels separately.
by now, i believe you are wondering where we add or delete users and define roles. at first i thought i would have needed to add a new screen by myself but that is not the case with visual studio lightswitch.
to do that, what we need to do is to check the granted for debug checkbox for the security administration module and then run the app again.
upon running the app, we get:
two new screens, one for defining users and another for defining roles! both neatly tucked in, in their own dropdown menu item called administration.
and in case you haven’t noticed yet, i have not gone into forms authentication while this blog’s title is related to forms authentication. the reason behind that, is that visual studio lightswitch makes it so easy to move from windows authentication to forms authentication by just choosing the appropriate option button.
and that’s it!
next time i’ll show how to add a new user control j
user
I found one hundred and eighty-three "t"s in the provided passage.
assistant