Hi, In a typical IS as a KM setup, We have a KM extension written to attach 2steps(1st- basic, 2nd- smsotp) authentication during application creation time. With IS 5.6.0-M6 we need to add a conditional authentication script to the same KM extension.
I was able to do this with the following, LocalAndOutboundAuthenticationConfig localAndOutboundAuthenticationConfig = > new LocalAndOutboundAuthenticationConfig(); > AuthenticationScriptConfig scriptConfig = new AuthenticationScriptConfig(); > scriptConfig.setContent(<JavaScript goes here>); > scriptConfig.setEnabled(true); > > localAndOutboundAuthenticationConfig.setAuthenticationScriptConfig(scriptConfig); > For the testing purpose I have added the JavaScript code within the same. What is the recommended approach to keep the conditional authentication script in a similar situation? Reading from a config file outside km extension or keeping inside the same Java code? Until we finalize the conditional authentication script there is an advantage in the following approach as we don't need to build the source again and again for testing. Thanks!
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
