We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eff637 commit dc7e678Copy full SHA for dc7e678
runtime/src/main/java/io/quarkus/oidc/proxy/runtime/OidcProxy.java
@@ -255,6 +255,12 @@ public void localAuthorizationCodeFlowRedirect(RoutingContext context) {
255
return;
256
}
257
String oidcProxyState = OidcUtils.removeCookie(context, oidcTenantConfig, OIDC_PROXY_STATE_COOKIE);
258
+ if (oidcProxyState == null) {
259
+ LOG.error("Proxy state cookie is missing or could not be retrieved");
260
+ context.response().setStatusCode(HttpResponseStatus.UNAUTHORIZED.code());
261
+ context.response().end();
262
+ return;
263
+ }
264
if (!oidcProxyState.equals(state)) {
265
LOG.error("State query parameter is not equal to the proxy state");
266
context.response().setStatusCode(HttpResponseStatus.UNAUTHORIZED.code());
0 commit comments