Browse Source

removed repetative check of "token" parameter in signed request object

pull/166/merge
Mike Derryberry 13 years ago committed by Justin Richer
parent
commit
99bc1294e3
  1. 6
      openid-connect-client/src/main/java/org/mitre/openid/connect/client/OIDCSignedRequestFilter.java

6
openid-connect-client/src/main/java/org/mitre/openid/connect/client/OIDCSignedRequestFilter.java

@ -84,9 +84,7 @@ public class OIDCSignedRequestFilter extends AbstractOIDCAuthenticationFilter {
@Override @Override
public void handleAuthorizationRequest(HttpServletRequest request, HttpServletResponse response, public void handleAuthorizationRequest(HttpServletRequest request, HttpServletResponse response,
OIDCServerConfiguration serverConfiguration) throws IOException { OIDCServerConfiguration serverConfiguration) throws IOException {
if(StringUtils.isNotBlank(request.getParameter("token"))) {
Jwt jwt = createAndSignRequestJwt(request, serverConfiguration); Jwt jwt = createAndSignRequestJwt(request, serverConfiguration);
Map<String, String> urlVariables = new HashMap<String, String>(); Map<String, String> urlVariables = new HashMap<String, String>();
@ -98,8 +96,6 @@ public class OIDCSignedRequestFilter extends AbstractOIDCAuthenticationFilter {
logger.debug("Auth Request: " + authRequest); logger.debug("Auth Request: " + authRequest);
response.sendRedirect(authRequest); response.sendRedirect(authRequest);
}
} }
public Jwt createAndSignRequestJwt(HttpServletRequest request, OIDCServerConfiguration serverConfiguration) { public Jwt createAndSignRequestJwt(HttpServletRequest request, OIDCServerConfiguration serverConfiguration) {

Loading…
Cancel
Save