Skip to content

Commit

Permalink
fix: clear REDIRECT_URI cookie on authenticated requests
Browse files Browse the repository at this point in the history
  • Loading branch information
its-felix committed Oct 22, 2023
1 parent 3ab83ef commit efc28be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.gw2auth</groupId>
<artifactId>oauth2-server</artifactId>
<version>1.58.1</version>
<version>1.58.2</version>
<packaging>jar</packaging>

<parent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public static void clearCookieIfPresent(HttpServletRequest request, HttpServletR
if (cookies != null) {
for (Cookie cookie : cookies) {
if (cookie.getName().equals(name)) {
cookie.setMaxAge(0);
response.addCookie(cookie);
clearCookie(request, response, name);
break;
}
}
Expand Down

0 comments on commit efc28be

Please sign in to comment.