use of org.wso2.carbon.integration.common.utils.LoginLogoutClient in project product-is by wso2.
the class OAuth2ServiceAuthCodeGrantOpenIdTestCase method testInit.
@BeforeClass(alwaysRun = true)
public void testInit() throws Exception {
backendURL = context.getContextUrls().getBackEndUrl();
loginLogoutClient = new LoginLogoutClient(context);
logManger = new AuthenticatorClient(backendURL);
sessionCookie = logManger.login(username, userPassword, context.getInstance().getHosts().get("default"));
identityContextUrls = context.getContextUrls();
tenantInfo = context.getContextTenant();
userInfo = tenantInfo.getContextUser();
appMgtclient = new ApplicationManagementServiceClient(sessionCookie, backendURL, null);
adminClient = new OauthAdminClient(backendURL, sessionCookie);
remoteUSMServiceClient = new RemoteUserStoreManagerServiceClient(backendURL, sessionCookie);
oAuth2TokenValidationClient = new Oauth2TokenValidationClient(backendURL, sessionCookie);
client = new DefaultHttpClient();
client.setCookieStore(cookieStore);
setSystemproperties();
remoteUSMServiceClient.addUser(USERNAME, PASSWORD, new String[] { "admin" }, getUserClaims(), "default", true);
}
use of org.wso2.carbon.integration.common.utils.LoginLogoutClient in project product-is by wso2.
the class OAuth2ServiceImplicitGrantTestCase method testInit.
@BeforeClass(alwaysRun = true)
public void testInit() throws Exception {
backendURL = context.getContextUrls().getBackEndUrl();
loginLogoutClient = new LoginLogoutClient(context);
logManger = new AuthenticatorClient(backendURL);
sessionCookie = logManger.login(username, userPassword, context.getInstance().getHosts().get("default"));
identityContextUrls = context.getContextUrls();
tenantInfo = context.getContextTenant();
userInfo = tenantInfo.getContextUser();
appMgtclient = new ApplicationManagementServiceClient(sessionCookie, backendURL, null);
adminClient = new OauthAdminClient(backendURL, sessionCookie);
remoteUSMServiceClient = new RemoteUserStoreManagerServiceClient(backendURL, sessionCookie);
setSystemproperties();
client = HttpClientBuilder.create().build();
scopes = "abc";
}
use of org.wso2.carbon.integration.common.utils.LoginLogoutClient in project product-is by wso2.
the class OAuth2ServiceIntrospectionTestCase method testInit.
@BeforeClass(alwaysRun = true)
public void testInit() throws Exception {
backendURL = context.getContextUrls().getBackEndUrl();
loginLogoutClient = new LoginLogoutClient(context);
logManger = new AuthenticatorClient(backendURL);
sessionCookie = logManger.login(username, userPassword, context.getInstance().getHosts().get("default"));
identityContextUrls = context.getContextUrls();
tenantInfo = context.getContextTenant();
userInfo = tenantInfo.getContextUser();
appMgtclient = new ApplicationManagementServiceClient(sessionCookie, backendURL, null);
adminClient = new OauthAdminClient(backendURL, sessionCookie);
remoteUSMServiceClient = new RemoteUserStoreManagerServiceClient(backendURL, sessionCookie);
setSystemproperties();
client = HttpClientBuilder.create().build();
}
Aggregations