Search in sources :

Example 11 with JsFunctionRegistryImpl

use of org.wso2.carbon.identity.application.authentication.framework.config.model.graph.JsFunctionRegistryImpl in project carbon-identity-framework by wso2.

the class ConditionalAuthenticationMgtServiceTest method singlePostAuthenticatorData.

@DataProvider(name = "jsFunctionProvider")
public Object[][] singlePostAuthenticatorData() {
    JsFunctionRegistry emptyRegistry = new JsFunctionRegistryImpl();
    JsFunctionRegistry registryWithCustomFunctions = new JsFunctionRegistryImpl();
    registryWithCustomFunctions.register(JsFunctionRegistry.Subsystem.SEQUENCE_HANDLER, "func1", new Object());
    return new Object[][] { { emptyRegistry, new String[] { "executeStep", "selectAcrFrom", "sendError", "Log.info", "require" } }, { registryWithCustomFunctions, new String[] { "executeStep", "selectAcrFrom", "sendError", "Log.info", "require", "func1" } } };
}
Also used : JsFunctionRegistry(org.wso2.carbon.identity.application.authentication.framework.JsFunctionRegistry) JsFunctionRegistryImpl(org.wso2.carbon.identity.application.authentication.framework.config.model.graph.JsFunctionRegistryImpl) DataProvider(org.testng.annotations.DataProvider)

Aggregations

JsFunctionRegistryImpl (org.wso2.carbon.identity.application.authentication.framework.config.model.graph.JsFunctionRegistryImpl)11 AuthenticationContext (org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext)7 ServiceProvider (org.wso2.carbon.identity.application.common.model.ServiceProvider)6 Test (org.testng.annotations.Test)5 JsAuthenticationContext (org.wso2.carbon.identity.application.authentication.framework.config.model.graph.js.JsAuthenticationContext)5 AuthHistory (org.wso2.carbon.identity.application.authentication.framework.context.AuthHistory)5 HttpServletRequest (javax.servlet.http.HttpServletRequest)3 HttpServletResponse (javax.servlet.http.HttpServletResponse)3 JsFunctionRegistry (org.wso2.carbon.identity.application.authentication.framework.JsFunctionRegistry)3 UIBasedConfigurationLoader (org.wso2.carbon.identity.application.authentication.framework.config.loader.UIBasedConfigurationLoader)3 SequenceConfig (org.wso2.carbon.identity.application.authentication.framework.config.model.SequenceConfig)3 JsGraphBuilderFactory (org.wso2.carbon.identity.application.authentication.framework.config.model.graph.JsGraphBuilderFactory)3 CacheBackedLongWaitStatusDAO (org.wso2.carbon.identity.application.authentication.framework.dao.impl.CacheBackedLongWaitStatusDAO)3 LongWaitStatusDAOImpl (org.wso2.carbon.identity.application.authentication.framework.dao.impl.LongWaitStatusDAOImpl)3 LongWaitStatusStoreService (org.wso2.carbon.identity.application.authentication.framework.store.LongWaitStatusStoreService)3 AsyncSequenceExecutor (org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.AsyncSequenceExecutor)2 IOException (java.io.IOException)1 BiFunction (java.util.function.BiFunction)1 Servlet (javax.servlet.Servlet)1 ContextPathServletAdaptor (org.eclipse.equinox.http.helper.ContextPathServletAdaptor)1