IGroup IRoleProvider.GetGroup(string name, string extraData)
        {
            throw new Exception("The method or operation is not implemented.");
            //Interpret extra data - this can be a token that has been encrypted...
            SecurityToken token = SecurityToken.CreateToken(extraData);

            //Connect to webservice using init value set from config....
            BackEndProvider bp = new BackEndProvider();

            bp.Initialize(_url);
        }
        bool IAuthenticationProvider.AuthenticateUser(string userName, string password, string extraData)
        {
            //Interpret extra data - this can be a token that has been encrypted...
            SecurityToken token = SecurityToken.CreateToken(extraData);

            //Connect to webservice using init value set from config....
            BackEndProvider bp = new BackEndProvider();

            bp.Initialize(_url);

            return(bp.Authenticate(userName, password, token));
        }
        IGroupCollection IRoleProvider.FindGroups(string userName, IDictionary <string, object> properties)
        {
            //Connect to webservice using init value set from config....
            BackEndProvider bp = new BackEndProvider();

            bp.Initialize(_url);

            IGroupCollection groups = bp.GetGroups(userName, properties);

            return(groups);

            //Implement all other methods that has not been implemented in this sample in the same way....
            //Get User/Group objects from back end and return objects that implement IUser/IGroup etc.
        }