use of org.wso2.identity.integration.test.oidc.bean.OIDCApplication in project product-is by wso2.
the class OIDCSPWiseSkipLoginConsentTestCase method configureSPToSkipConsent.
private void configureSPToSkipConsent() throws Exception {
OIDCApplication oidcApplication = OIDCUtilTest.applications.get(OIDCUtilTest.playgroundAppTwoAppName);
ServiceProvider serviceProvider = appMgtclient.getApplication(oidcApplication.getApplicationName());
LocalAndOutboundAuthenticationConfig localAndOutboundAuthenticationConfig = new LocalAndOutboundAuthenticationConfig();
localAndOutboundAuthenticationConfig.setSkipConsent(true);
serviceProvider.setLocalAndOutBoundAuthenticationConfig(localAndOutboundAuthenticationConfig);
appMgtclient.updateApplicationData(serviceProvider);
}
use of org.wso2.identity.integration.test.oidc.bean.OIDCApplication in project product-is by wso2.
the class OIDCSSOConsentTestCase method initApplication.
protected OIDCApplication initApplication() {
playgroundApp = new OIDCApplication(OIDCUtilTest.playgroundAppOneAppName, OIDCUtilTest.playgroundAppOneAppContext, OIDCUtilTest.playgroundAppOneAppCallBackUri);
playgroundApp.addRequiredClaim(OIDCUtilTest.emailClaimUri);
playgroundApp.addRequiredClaim(OIDCUtilTest.firstNameClaimUri);
return playgroundApp;
}
use of org.wso2.identity.integration.test.oidc.bean.OIDCApplication in project product-is by wso2.
the class OIDCSSOConsentTestCase method updateApplication.
private void updateApplication(OIDCApplication playgroundApp, ServiceProvider serviceProvider) throws Exception {
playgroundApp.addRequiredClaim(OIDCUtilTest.lastNameClaimUri);
ClaimConfig claimConfig = new ClaimConfig();
Claim claim = new Claim();
claim.setClaimUri(OIDCUtilTest.lastNameClaimUri);
ClaimMapping claimMapping = new ClaimMapping();
claimMapping.setRequested(true);
claimMapping.setLocalClaim(claim);
claimMapping.setRemoteClaim(claim);
claimConfig.addClaimMappings(claimMapping);
serviceProvider.setClaimConfig(claimConfig);
updateApplication(serviceProvider);
}
use of org.wso2.identity.integration.test.oidc.bean.OIDCApplication in project product-is by wso2.
the class OIDCUtilTest method initApplications.
/**
* Initiate an Application.
*/
public static void initApplications() {
OIDCApplication playgroundApp = new OIDCApplication(playgroundAppOneAppName, playgroundAppOneAppContext, playgroundAppOneAppCallBackUri);
playgroundApp.addRequiredClaim(emailClaimUri);
playgroundApp.addRequiredClaim(firstNameClaimUri);
playgroundApp.addRequiredClaim(lastNameClaimUri);
applications.put(playgroundAppOneAppName, playgroundApp);
playgroundApp = new OIDCApplication(playgroundAppTwoAppName, playgroundAppTwoAppContext, playgroundAppTwoAppCallBackUri);
playgroundApp.addRequiredClaim(emailClaimUri);
playgroundApp.addRequiredClaim(firstNameClaimUri);
playgroundApp.addRequiredClaim(lastNameClaimUri);
applications.put(playgroundAppTwoAppName, playgroundApp);
}
Aggregations