Monday, March 14, 2016

User Store Count with WSO2 Identity Server 5.2.0

This post is to provide details on one of the new functionalities introduced with WSO2 Identity Server 5.2.0, to be released soon. This feature comes with a service to count the number of users based on user names patterns and claims and also to count the number of roles matching a role name pattern in user store. By default this supports JDBC user store implementations only and provides freedom to extend the functionality to LDAP user stores or any other type as well.

How to Use?

A new property is introduced in user store manager configuration named 'CountRetrieverClass', where we can configure the class name that carries the count implementation for particular user store domain.

Using Service

The functionality is exposed via a service named 'UserStoreCountService' which provides relevant operations as below.

Separate operations are provided to get the counts of a particular user store or the whole user store chain for following functionalities.
  • Count users matching a filter for user name
  • Count roles matching a filter for role name
  • Count users matching a filter for a claim value
  • Count users matching filters for a set of claim values (eg: count of users whose email address ends with 'wso2.com' and mobile number starts with '033')

Extending

In order to extend the functionality, this interface 'org.wso2.carbon.identity.user.store.count.UserStoreCountRetriever' should be implemented by the class, packaged into an OSGI bundle and dropped into the dropins folder within WSO2 Identity Server.




5 comments :

  1. We required generate the third party Web services request (Soap) from our internal system for testing We are using Java programing to generate this code but we have few clarifications while generating this third party. We have a Private Key in PEM file,we open that file in text pad it contains Being,End block and inside block it is contains encoded charters.Objective here is to generate SOAP header along with certain tag information as follows ........
    Help us know what should in BinarySecurityToken tag ,SignatureValue Tag ,DigestValue Tag and SecurityTokenData

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. HTTP Status 500 - org.mozilla.javascript.JavaScriptException: JavaException: org.jaggeryjs.scriptengine.exceptions.ScriptException: SSL peer failed hostname validation for name: ubuntu (/dashboard/controllers/wsUtil.jag#76)

    When i'm going to IS dashboard i'm getting this error i want to solve it out?
    thank you?

    ReplyDelete
  4. Ama Jayaweeara, I had the same error and i think that the problem is Java8. I switched to java7 and now my dashboard run.

    ReplyDelete
  5. Woes began out on the sidewalk, where approximately 300 eager shoppers christian louboutin outlet uk were waiting outside when the doors opened for the sale's second day at 8am. There were so many people that you had to wait in a separate line to then wait in the one that would actually cheap christian louboutin get you into the sale. By the tipster's estimate, the crowd consisted "almost entirely [of] people without invitations. Some groups seemed to have one invite for 2-3 people, which of course christian louboutin for sale doesn't work." And, as usual, "invites were checked at the door and were very strict. You needed an invite + ID + to be on list. No one is going to sneak into this."

    ReplyDelete