Skip to content

Commit

Permalink
Allow LinkedDataHub.id_token cookie in frontend Varnish config
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Oct 31, 2023
1 parent a74482d commit 469eb41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/varnish.vcl.template
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ sub vcl_recv {
# explicitly allow only cookies required by LDH server-side
set req.http.Cookie = ";" + req.http.Cookie;
set req.http.Cookie = regsuball(req.http.Cookie, "; +", ";");
set req.http.Cookie = regsuball(req.http.Cookie, ";(LinkedDataHub\.state)=", "; \1=");
set req.http.Cookie = regsuball(req.http.Cookie, ";(LinkedDataHub\.state|LinkedDataHub\.id_token)=", "; \1=");
set req.http.Cookie = regsuball(req.http.Cookie, ";[^ ][^;]*", "");
set req.http.Cookie = regsuball(req.http.Cookie, "^[; ]+|[; ]+$", "");

Expand Down

0 comments on commit 469eb41

Please sign in to comment.