[wsf-c-dev] [jira] Created: (WSFPHP-388) passwordCallback should support specifying "true" PHP callbacks

Dolf Starreveld (JIRA) jira at wso2.org
Tue May 19 18:28:25 PDT 2009


passwordCallback should support specifying "true" PHP callbacks
---------------------------------------------------------------

                 Key: WSFPHP-388
                 URL: https://wso2.org/jira/browse/WSFPHP-388
             Project: WSO2 WSF/PHP
          Issue Type: New Feature
          Components: WS-Security Support
    Affects Versions: 2.0.0
         Environment: All
            Reporter: Dolf Starreveld


The current implementation expects the "passwordCallback" option to contain a string. Anything else is not accepted. Consequently, the actual callback function can only be a (global) function.
If one is deploying more object oriented code and writes a service implementation in a class, it would be very nice to allow the password callback to be a method inside that class (be it static or member function). In the normal PHP scenario that would be specified as:
array('passwordCallback' => array($object, 'passwordCallbackMethod')).

Supporting this will require two things:
1) Modify the code the inspects the initial options to recognize the array form specification
2) Modify the wsf_password_callback_function to handle this case (from the passed in callback args).

Similar arguments apply for all callbacks.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the Wsf-c-dev mailing list