You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "EricGao888 (via GitHub)" <gi...@apache.org> on 2023/08/15 13:38:02 UTC

[GitHub] [dolphinscheduler] EricGao888 commented on a diff in pull request #14743: [Feature][Authentication] support oauth2 login

EricGao888 commented on code in PR #14743:
URL: https://github.com/apache/dolphinscheduler/pull/14743#discussion_r1294608028


##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/LoginController.java:
##########
@@ -160,4 +180,77 @@ public Result signOut(@Parameter(hidden = true) @RequestAttribute(value = Consta
         request.removeAttribute(Constants.SESSION_USER);
         return success();
     }
+
+    @DeleteMapping("cookies")
+    public void clearCookieSessionId(HttpServletRequest request, HttpServletResponse response) {
+        Cookie[] cookies = request.getCookies();
+        for (Cookie cookie : cookies) {
+            cookie.setMaxAge(0);

Review Comment:
   Just for double check, do we need to set the cookie path here? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org