use of org.wso2.carbon.identity.sso.saml.stub.types.SAMLSSOServiceProviderDTO in project product-is by wso2.
the class SAMLLocalAndOutboundAuthenticatorsTestCase method getSsoServiceProviderDTO.
private SAMLSSOServiceProviderDTO getSsoServiceProviderDTO() {
SAMLSSOServiceProviderDTO samlssoServiceProviderDTO = new SAMLSSOServiceProviderDTO();
samlssoServiceProviderDTO.setIssuer(config.getApplication().getArtifact());
samlssoServiceProviderDTO.setAssertionConsumerUrls(new String[] { String.format(ACS_URL, config.getApplication().getArtifact()) });
samlssoServiceProviderDTO.setDefaultAssertionConsumerUrl(String.format(ACS_URL, config.getApplication().getArtifact()));
samlssoServiceProviderDTO.setNameIDFormat(NAMEID_FORMAT);
samlssoServiceProviderDTO.setDoSignAssertions(true);
samlssoServiceProviderDTO.setDoSignResponse(true);
samlssoServiceProviderDTO.setDoSingleLogout(true);
samlssoServiceProviderDTO.setLoginPageURL(LOGIN_URL);
return samlssoServiceProviderDTO;
}
use of org.wso2.carbon.identity.sso.saml.stub.types.SAMLSSOServiceProviderDTO in project product-is by wso2.
the class UserSessionTest method createSAMLServiceProviderDTO.
private SAMLSSOServiceProviderDTO createSAMLServiceProviderDTO(String issuer) {
SAMLSSOServiceProviderDTO samlssoServiceProviderDTO = new SAMLSSOServiceProviderDTO();
samlssoServiceProviderDTO.setIssuer(issuer);
samlssoServiceProviderDTO.setAssertionConsumerUrls(new String[] { String.format(SAMPLE_APP_URL, issuer) + APP_HOMEPAGE });
samlssoServiceProviderDTO.setDefaultAssertionConsumerUrl(String.format(SAMPLE_APP_URL, issuer) + APP_HOMEPAGE);
samlssoServiceProviderDTO.setAttributeConsumingServiceIndex("1239245949");
samlssoServiceProviderDTO.setNameIDFormat("urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress");
samlssoServiceProviderDTO.setDoSignAssertions(true);
samlssoServiceProviderDTO.setDoSignResponse(true);
samlssoServiceProviderDTO.setDoSingleLogout(true);
samlssoServiceProviderDTO.setLoginPageURL(LOGIN_PAGE);
return samlssoServiceProviderDTO;
}
use of org.wso2.carbon.identity.sso.saml.stub.types.SAMLSSOServiceProviderDTO in project product-is by wso2.
the class AbstractSAMLSSOTestCase method createSsoSPDTOForSAMLartifactBinding.
/**
* Create SAML SSO Service Provider DTO For SAML artifact binding.
*
* @param config contains the details of the SAML artifact binding enabled service provider application.
* @return the created SAMLSSOServiceProviderDTO.
*/
public SAMLSSOServiceProviderDTO createSsoSPDTOForSAMLartifactBinding(SAMLConfig config) {
SAMLSSOServiceProviderDTO idpInitSpDTO = createSsoSPDTO(config);
idpInitSpDTO.setEnableSAML2ArtifactBinding(true);
return idpInitSpDTO;
}
use of org.wso2.carbon.identity.sso.saml.stub.types.SAMLSSOServiceProviderDTO in project product-is by wso2.
the class RegistryMountTestCase method createSsoServiceProviderDTO.
private SAMLSSOServiceProviderDTO createSsoServiceProviderDTO() {
SAMLSSOServiceProviderDTO samlssoServiceProviderDTO = new SAMLSSOServiceProviderDTO();
samlssoServiceProviderDTO.setIssuer(artifact);
samlssoServiceProviderDTO.setAssertionConsumerUrls(new String[] { String.format(ACS_URL, artifact) });
samlssoServiceProviderDTO.setDefaultAssertionConsumerUrl(String.format(ACS_URL, artifact));
samlssoServiceProviderDTO.setAttributeConsumingServiceIndex(ATTRIBUTE_CS_INDEX_VALUE);
samlssoServiceProviderDTO.setNameIDFormat(NAMEID_FORMAT);
samlssoServiceProviderDTO.setDoSignAssertions(false);
samlssoServiceProviderDTO.setDoSignResponse(false);
samlssoServiceProviderDTO.setDoSingleLogout(true);
samlssoServiceProviderDTO.setLoginPageURL(LOGIN_URL);
return samlssoServiceProviderDTO;
}
use of org.wso2.carbon.identity.sso.saml.stub.types.SAMLSSOServiceProviderDTO in project product-is by wso2.
the class SAMLErrorResponseTestCase method createSsoServiceProviderDTO.
private SAMLSSOServiceProviderDTO createSsoServiceProviderDTO() {
SAMLSSOServiceProviderDTO samlssoServiceProviderDTO = new SAMLSSOServiceProviderDTO();
samlssoServiceProviderDTO.setIssuer(ARTIFACT_ID);
samlssoServiceProviderDTO.setAssertionConsumerUrls(new String[] { String.format(INVALID_ACS_URL, ARTIFACT_ID) });
samlssoServiceProviderDTO.setDefaultAssertionConsumerUrl(String.format(INVALID_ACS_URL, ARTIFACT_ID));
samlssoServiceProviderDTO.setNameIDFormat(NAMEID_FORMAT);
samlssoServiceProviderDTO.setDoSignAssertions(false);
samlssoServiceProviderDTO.setDoSignResponse(false);
samlssoServiceProviderDTO.setDoSingleLogout(true);
samlssoServiceProviderDTO.setLoginPageURL(LOGIN_URL);
return samlssoServiceProviderDTO;
}
Aggregations