Skip to content

Commit

Permalink
Removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed May 8, 2020
1 parent bd82212 commit c612f93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 0 additions & 3 deletions mujina-idp/src/main/java/mujina/idp/MetadataController.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ public String metadata(@Value("${idp.base_url}") String idpBaseUrl) throws Secur

idpssoDescriptor.addSupportedProtocol(SAMLConstants.SAML20P_NS);

String localPort = environment.getProperty("local.server.port");


SingleSignOnService singleSignOnService = buildSAMLObject(SingleSignOnService.class, SingleSignOnService.DEFAULT_ELEMENT_NAME);
singleSignOnService.setLocation(idpBaseUrl + "/SingleSignOnService");
singleSignOnService.setBinding(SAMLConstants.SAML2_REDIRECT_BINDING_URI);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import mujina.AbstractIntegrationTest;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Value;

import static io.restassured.RestAssured.given;
import static io.restassured.config.RestAssuredConfig.newConfig;
Expand All @@ -11,6 +12,9 @@

public class MetadataControllerTest extends AbstractIntegrationTest {

@Value("${idp.base_url}")
private String idpBaseUrl;

@Test
public void metadata() throws Exception {
given()
Expand All @@ -22,7 +26,7 @@ public void metadata() throws Exception {
.statusCode(SC_OK)
.body(
"EntityDescriptor.IDPSSODescriptor.SingleSignOnService.@Location",
equalTo("http://localhost:8080/SingleSignOnService"));
equalTo(idpBaseUrl + "/SingleSignOnService"));
}

}
Expand Down

0 comments on commit c612f93

Please sign in to comment.