This example contains a reusable Security.Extensions module that provides a solution for the following suggestions:
In order to use this module in your project, do the following:
1. Include the module sources into your solution and rebuild it;
2. Invoke the Module Designer for your platform-agnostic module and drag and drop the SecurityExtensionsModule from the Toolbox;
3. Add the following code into your platform-agnostic module class:
[C#]staticYourPlatformAgnosticModuleName(){SecurityExtensionsModule.CreateSecuritySystemUser=Updater.CreateUser;}
where 'Updater.CreateUser' is your custom method that matches the following definition:
[C#]publicdelegateIAuthenticationStandardUserCreateSecuritySystemUser(IObjectSpaceobjectSpace,stringuserName,stringemail,stringpassword,boolisAdministrator);
Refer to the following video to see the module features in action: http://www.screencast.com/t/h2goGEdZJc
IMPORTANT NOTE
This module is currently ASP.NET only.
Example Comments
Added By: Daniele Bonetti at: 8/27/2012 6:14:19 PM
downloaded and run the demo but i receive "Object reference not set to an instance of an object" error
xaf 12.1.5
It can't be run. Object reference not set to an instance of an object" error
Added By: Santiago Moscoso at: 11/12/2012 6:39:21 PMOn windows needs to invoke "EnsureShowViewStrategy" method from application, it's protected so you must use reflection.
On web I have problems with the action buttons not refreshing properly, must presh F5 to update buttons. (I'm working on 11.2.11)
Added By: Evgeniy Meyke at: 11/26/2012 7:59:41 AMDennis, any chance to have this checked out soon?
//Dennis: TODO
//A possible issue in the framework - Controllers from ShowViewParameters are not added to the current Frame on the Web.
//e.ShowViewParameters.Controllers.Add(CreateDialogController());
quick question before i begin integrating this: referring to the comment above " Include the module sources into your solution and rebuild it;" .. are you referring to the modules as listed below, or ALL the xaf modules?
Added By: drew.. at: 3/11/2013 1:12:45 PM.. for the benefit of others, this reference to "module" in #1 above, means to drop the entire Security.Extensions folder from the demo into your current solution that you want to update with the basic feature. Then add a reference from your platform-agnostic module (PAM) to the added project, rebuild, THEN go into the module designer for the PAM and drag-n-drop your newly added security module into the required modules section. Then rebuild again.
Added By: drew.. at: 3/11/2013 1:31:40 PMbtw, i am in the process of integrating this with my DC-only based project. Once i have all the conversions done and tested i will likely post the project to help others save time.
Added By: Mario Blatarić at: 3/12/2013 4:59:10 AMWhich parts make this module ASP.NET only? I don't understand what needs to be changed in order to make this work in WinForms as well. Any hints?
Added By: John01 at: 4/16/2013 11:10:38 AMHi
When I run the example and click OK on register user I get the error 'Property 'Email' does not exist within type 'DevExpress.ExpressApp.Security.Strategy.SecuritySystemUser'.' on line user.SetMemberValue("Email", email) in function CreateUser. The email value is 'sam@example.com'. I did upgrade the project to 12.2.7 before running though. Any ideas?
Thanks
Regards
Added By: CArlos segura_1 at: 6/13/2013 4:22:53 PMsomeone has been to implement this?