Adapting the configuration File
The configuration file is written in JSON notation and cannot embed any comment, this page détails all the parts.
Basicaly there is 3 parts, an unammed part at the beginning followed by a ClaimsElement array that defines the claims you want to use and a closing Provider array which contains the connection to your servers.
Let's start
"Debug": "true",
"ADFSReference": "adfs21",
"IgnoredWebApps" :
[
"http://mgiSP1app:65000"
],
Debug : true ou false, when true CNRSccp trace most work in the ULS log under CNRSccp product. This may change one day when I will be more familiar whith SharePoint logging
ADFSReference : this value is very important and should be equal to the name of the TrustedIdentityTokenIssuer where CNRSccp will be use.
IgnoredWebApps : The array of SharePoint web application where CNRSccp won't do anything, This generaly the case in central admin.
claims definition
"ClaimsElement":
[
{
"Title": "Grouper",
"Type": "http://schemas.dsi.cnrs.fr/claims/",
"Key": "grouper",
"ReferenceID": "",
"DB": "",
"FormatDisplay": "Group {0}",
"Format": "{0}",
"Hidden": "false",
"ProviderName": "grouper"
}
],
ClaimsElement is an array of object with the following properties
Title : The name display of the claim type in the people picker hierarchy. This is only visible in the advance people picker view in 2010. Thjis view is still present in the central admin and used by InfoPath. So usefull when you don't only share to people !
Type : The claim type declared in your trusted token issuer, minus the last term (the key). This value should end with a / as in the exemple.
Key : The last part of the claim type declared in your trusted token issuer.
ReferenceID : The column of the database used for the SQL query (where ReferenceID like searchPattern).
DB : the name of the table or the view used for the SQL query (from DB)
*FormatDisplay" : The string.format used to display the result in the people picker and store in SharePoint. the minmum value is {0}. These three characters are replaced by the value returned from the provider.
*Format" : The string.format used to build the claim. The minimal value is {0}
Hidden : true ou false, if true the claim type is hidden in the result tree of the people picker.
ProviderName : the name of the provider, declared in the next section, to use for this claim type.
Claims providers
"Provider":
[
{
"Name": "grouper",
"Type": "VOOT",
"User": "User with reading rights",
"Password": "your password to the preceding user",
"Url": "https://yourGrouperFQDN/grouper-ws/voot/groups"
}
]