Skip to content

Commit

Permalink
#287 Support OpenID Connect.
Browse files Browse the repository at this point in the history
- Modify test code
  • Loading branch information
SawamiWataru committed Dec 27, 2018
1 parent eee92c3 commit 94ef50c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void normal_default_not_set_property_not_set() {
String cellUrl = UrlUtils.getBaseUrl() + "/" + Setup.TEST_CELL1 + "/";
String message = PersoniumCoreMessageUtils.getMessage("PS-AU-0002");
String expected = createDefaultHtml(
clientId, redirectUri, message, null, responseType, null, null, cellUrl);
clientId, redirectUri, message, null, null, responseType, null, null, cellUrl);
assertThat(res.getHeader(HttpHeaders.CONTENT_TYPE), is("text/html;charset=UTF-8"));
assertThat(res.getBody(), is(expected));
}
Expand Down Expand Up @@ -295,14 +295,15 @@ public void normal_default_set_property_set() {
// Create system default html.
// TODO Should call AuthzEndPointResource.createForm() properly.
private String createDefaultHtml(String clientId, String redirectUriStr, String message, String state,
String responseType, String pTarget, String pOwner, String cellUrl) {
String scope, String responseType, String pTarget, String pOwner, String cellUrl) {
// If processing fails, return system default html.
List<Object> paramsList = new ArrayList<Object>();

if (!"".equals(clientId) && !clientId.endsWith("/")) {
clientId = clientId + "/";
}

paramsList.add(AuthResourceUtils.getJavascript("ajax.js"));
paramsList.add(PersoniumCoreMessageUtils.getMessage("PS-AU-0001"));
paramsList.add(clientId + Box.DEFAULT_BOX_NAME + "/profile.json");
paramsList.add(cellUrl + Box.DEFAULT_BOX_NAME + "/profile.json");
Expand All @@ -315,7 +316,7 @@ private String createDefaultHtml(String clientId, String redirectUriStr, String
paramsList.add(pOwner != null ? pOwner : ""); // CHECKSTYLE IGNORE
paramsList.add(clientId);
paramsList.add(redirectUriStr);
paramsList.add(AuthResourceUtils.getJavascript("ajax.js"));
paramsList.add(scope);

Object[] params = paramsList.toArray();

Expand Down

0 comments on commit 94ef50c

Please sign in to comment.