|
|
@ -85,8 +85,6 @@ public class OIDCSignedRequestFilter extends AbstractOIDCAuthenticationFilter { |
|
|
|
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>(); |
|
|
@ -100,8 +98,6 @@ public class OIDCSignedRequestFilter extends AbstractOIDCAuthenticationFilter { |
|
|
|
response.sendRedirect(authRequest); |
|
|
|
response.sendRedirect(authRequest); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Jwt createAndSignRequestJwt(HttpServletRequest request, OIDCServerConfiguration serverConfiguration) { |
|
|
|
public Jwt createAndSignRequestJwt(HttpServletRequest request, OIDCServerConfiguration serverConfiguration) { |
|
|
|
Jwt jwt = new Jwt(); |
|
|
|
Jwt jwt = new Jwt(); |
|
|
|
JwtHeader header = jwt.getHeader(); |
|
|
|
JwtHeader header = jwt.getHeader(); |
|
|
|