SharePoint project structure for Custom Claims Provider
-
2012年7月10日 20:16
I have been reading the following article to create a Custom Claims Provider: http://technet.microsoft.com/en-us/library/hh487289.aspx
However, this article provides a manual method to create the SharePoint assembly, register it in the GAC and then manually create a Feature.xml file to register the feature and be able to use it within the site.
Instead, I would like to be able to properly create a SharePoint project structure containing my Custom Claims Provider class(es) as well as my Custom Claims Feature Receiver so that it deploys directly through Visual Studio and displays amongst my list of available Claims Providers in the SharePoint People Picker.
Is there a sample Visual Studio project structure someone has created to successfully deploy a Custom Claims Provider without all of this manual effort?
Essentially, I want to be able to simply right click on my Visual Studio SharePoint project, select Deploy and then be able to begin using my Custom Claims Provider.
Please advise.
全部回复
-
2012年7月27日 7:42
Please have a look at my implementation (signature has a link).
It is not the best implementation ever but you'll have a good start point.
LinkedIn Profile
SharePoint Advanced Visibility Options project
SharePoint Managed Metadata Claims Provider project- 已建议为答案 HeToCMicrosoft Community Contributor 2012年7月27日 10:31
- 已标记为答案 Aviw_ 2012年8月4日 15:30
-
2012年7月27日 9:49
Hi,
I had created a Custom Claim Provider in visual studio, and below are the steps that I followed:-
1. Create new project using "Empty SharePoint Project" template in Visual Studio 2010.
2. Add a class file to the project and in it write the code of your custom claim provider, i.e. a class inheriting from SPClaimProvider.
3. Add a feature with "Farm" scope.
4. Add feature receiver.
When you deploy the solution, your feature will be visible in "Central Admin" under System Settings -> Manage Farm Features. From there you can activate your feature.
Further you can refer to following link:-
Hope this helps...
Regards, Shruti
- 已编辑 Shruti Raturi 2012年7月27日 9:51
- 已标记为答案 Aviw_ 2012年8月4日 15:31

