简体   繁体   中英

SharePoint SPClaimProvider details/usage

I have to implement my own SPClaimProvider for PeoplePicker. There are some methods to override. Problem: I can't figure out some methods/parameters usage. All of these methods are claims specific.

Examples:

  • method FillClaimValueTypes. What is claim value type? What doest it mean?
  • method FillSearch, parameters hierarchyNodeID, searchTree - what this all is about? How can I use this?

Got ideas?

Have you had a chance to check out these articles? How to create a claims provider Claims Walkthrough: Writing Claims Providers for SharePoint 2010

for FillClaimValueTypes - just a list that must match order of FillClaimTypes as well. This is what your provider adds in terms of claims. The type is a namespace, ie. such as http://mystuff/claims/myspecialclaim - it's a distinguishing identifier.

Check out this to see what methods are called by which process in your farm Know what process is calling your Claim Provider

There are other samples out there. Nancy Brown has a good series:

Custom Claims Providers: Hierarchical Claims - Part 1, background

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM