Skip to content

Commit

Permalink
Issue #7545 - changes from review
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Roberts <[email protected]>
(cherry picked from commit 5fe999c)
  • Loading branch information
lachlan-roberts authored and joakime committed Feb 25, 2022
1 parent 89255c5 commit 44a8c66
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ public OpenIdConfiguration(String issuer, String authorizationEndpoint, String t
* @param httpClient The {@link HttpClient} instance to use.
*/
public OpenIdConfiguration(@Name("issuer") String issuer,
@Name("authorizationEndpoint") String authorizationEndpoint, @Name("tokenEndpoint") String tokenEndpoint,
@Name("clientId") String clientId, @Name("clientSecret") String clientSecret,
@Name("authMethod") String authMethod, @Name("httpClient") HttpClient httpClient)
@Name("authorizationEndpoint") String authorizationEndpoint,
@Name("tokenEndpoint") String tokenEndpoint,
@Name("clientId") String clientId,
@Name("clientSecret") String clientSecret,
@Name("authMethod") String authMethod,
@Name("httpClient") HttpClient httpClient)
{
this.issuer = issuer;
this.clientId = clientId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t
Map<String, Object> userInfo = (Map<String, Object>)request.getSession().getAttribute("org.eclipse.jetty.security.openid.claims");
response.getWriter().println(userInfo.get("sub") + ": success");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t
response.getWriter().println("not authorized");
response.getWriter().println("<br><a href=\"" + request.getContextPath() + "\">Home</a>");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t
response.getWriter().println("<br><a href=\"" + request.getContextPath() + "/login\">Login</a>");
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t
response.getWriter().println("success");
response.getWriter().println("<br><a href=\"" + request.getContextPath() + "\">Home</a>");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t
request.getSession().invalidate();
response.sendRedirect(request.getContextPath());
}
}
}

0 comments on commit 44a8c66

Please sign in to comment.