How can the users role be set through the authentication cookie?
If you want the roles to be user-specific (different roles for different users) then the best way would be to write a CSModule that will read the roles from the cookie and add the user to the appropriate roles.
You can see an example for the beginnings of a CSModule here. Hope this helps,
Xander
Thanks, this got me going the right direction.
What I haven't been able to figure out or find in the docs is how to read a cookie from inside the CSModule. On a web page I would use Request.Cookies[...].Value to read cookie information but inside a CSModule what is available to get access to Community Server's HttpRequest object?
You can access the current request via System.Web.HttpContext.Current.Request...
Hope this helps,
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com