Toggle navigation
Home
org.cloudfoundry.identity.uaa.mock.util.MockMvcUtils.IdentityZoneCreationResult to org.cloudfoundry.identity.uaa.zone.IdentityZone
No. of Instances - 4
No. of Commits - 1
No. of Projects - {'uaa'}
Hierarchy/Composition: Composition
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Add or Remove Method invocation
createOtherIdentityZoneAndReturnResult
to
getIdentityZone
idpZone.getIdentityZone()
to
identityZone
mockMvc.perform(get("/uaa/saml/discovery").contextPath("/uaa").header(HttpHeaders.HOST,spZone.getIdentityZone().getSubdomain() + ".localhost:8080").param("returnIDParam","idp").param("entityID",spEntityId).param("idp",idp.getOriginKey()).param("isPassive","true")).andExpect(status().isFound())
to
mockMvc.perform(get("/uaa/saml/discovery").contextPath("/uaa").header(HttpHeaders.HOST,spZone.getSubdomain() + ".localhost:8080").param("returnIDParam","idp").param("entityID",spZoneEntityId).param("idp",idp.getOriginKey()).param("isPassive","true")).andExpect(status().isFound())
mockMvc.perform(get(mvcResult.getResponse().getRedirectedUrl()).contextPath("/uaa").header(HttpHeaders.HOST,spZone.getIdentityZone().getSubdomain() + ".localhost:8080").session((MockHttpSession)mvcResult.getRequest().getSession())).andDo(print()).andExpect(status().isOk()).andReturn()
to
mockMvc.perform(get(mvcResult.getResponse().getRedirectedUrl()).contextPath("/uaa").header(HttpHeaders.HOST,spZone.getSubdomain() + ".localhost:8080").session((MockHttpSession)mvcResult.getRequest().getSession())).andDo(print()).andExpect(status().isOk()).andReturn()
spZone.getIdentityZone()
to
spZone
getSamlMetadata(spZone.getIdentityZone().getSubdomain(),"/saml/metadata")
to
getSamlMetadata(spZone.getSubdomain(),"/saml/metadata")
new IdentityProvider<>().setType(OriginKeys.SAML).setOriginKey(idpZone.getIdentityZone().getSubdomain()).setActive(true).setName("SAML IDP for Mock Tests").setIdentityZoneId(spZone.getIdentityZone().getId())
to
new IdentityProvider<>().setType(OriginKeys.SAML).setOriginKey(idpZone.getSubdomain()).setActive(true).setName("SAML IDP for Mock Tests").setIdentityZoneId(spZone.getId())
new SamlIdentityProviderDefinition().setMetaDataLocation(getSamlMetadata(idpZone.getIdentityZone().getSubdomain(),"/saml/idp/metadata")).setIdpEntityAlias(idp.getOriginKey()).setLinkText(idp.getName())
to
new SamlIdentityProviderDefinition().setMetaDataLocation(getSamlMetadata(idpZone.getSubdomain(),"/saml/idp/metadata")).setIdpEntityAlias(idp.getOriginKey()).setLinkText(idp.getName())
spZone.getIdentityZone().getId()
to
spZone.getId()
idpProvisioning.create(idp,spZone.getIdentityZone().getId())
to
idpProvisioning.create(idp,spZone.getId())
idpZone.getIdentityZone().getSubdomain()
to
idpZone.getSubdomain()
mockMvc.perform(post("/uaa/saml/idp/SSO/alias/" + idpEntityId).contextPath("/uaa").header(HttpHeaders.HOST,idpZone.getIdentityZone().getSubdomain() + ".localhost:8080").param("RelayState",relayState).param("SAMLRequest",samlRequest)).andExpect(status().isFound())
to
mockMvc.perform(post("/uaa/saml/idp/SSO/alias/" + idpEntityId).contextPath("/uaa").header(HttpHeaders.HOST,idpZone.getSubdomain() + ".localhost:8080").param("RelayState",relayState).param("SAMLRequest",samlRequest)).andExpect(status().isFound())
idpZone.getIdentityZone().getSubdomain()
to
idpZone.getSubdomain()
getUaaSecurityContext("marissa",webApplicationContext,idpZone.getIdentityZone())
to
getUaaSecurityContext("marissa",webApplicationContext,idpZone)
idpZone.getIdentityZone().getId()
to
spZoneEntityId
sp
to
idpZone.getId()
spProvisioning.create(sp,idpZone.getIdentityZone().getId())
to
spProvisioning.create(samlServiceProvider,idpZone.getId())
new IdentityProvider<>().setType(OriginKeys.SAML).setOriginKey(idpZone.getIdentityZone().getSubdomain()).setActive(true).setName("SAML IDP for Mock Tests").setIdentityZoneId(spZone.getIdentityZone().getId())
to
new IdentityProvider<>().setType(OriginKeys.SAML).setOriginKey(idpZone.getSubdomain()).setActive(true).setName("SAML IDP for Mock Tests").setIdentityZoneId(spZone.getId())
new SamlIdentityProviderDefinition().setMetaDataLocation(getSamlMetadata(idpZone.getIdentityZone().getSubdomain(),"/saml/idp/metadata")).setIdpEntityAlias(idp.getOriginKey()).setLinkText(idp.getName())
to
new SamlIdentityProviderDefinition().setMetaDataLocation(getSamlMetadata(idpZone.getSubdomain(),"/saml/idp/metadata")).setIdpEntityAlias(idp.getOriginKey()).setLinkText(idp.getName())
spZone.getIdentityZone().getId()
to
spZone.getId()
Rename Variable
idpZone
to
identityZone