-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: added debug messages * chore: obiba commons snapshot and session related log messages * feat: updated oidc session handling * fix: set realm domain in u_auth cookie, added log messages * fix: added Location header with redirect response * chore: added signup with debug logs * fix: handle case signup with cookie is not available * feat: refresh signup with if u_auth is missing
- Loading branch information
Showing
8 changed files
with
105 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
agate-webapp/src/main/java/org/obiba/agate/config/AgateSessionListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.obiba.agate.config; | ||
import jakarta.servlet.http.HttpSessionEvent; | ||
import jakarta.servlet.http.HttpSessionListener; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class AgateSessionListener implements HttpSessionListener { | ||
private static final Logger logger = LoggerFactory.getLogger(AgateSessionListener.class); | ||
|
||
@Override | ||
public void sessionCreated(HttpSessionEvent event) { | ||
logger.info("🔹 Session Created: ID={}", event.getSession().getId()); | ||
} | ||
|
||
@Override | ||
public void sessionDestroyed(HttpSessionEvent event) { | ||
logger.warn("⚠️ Session Destroyed: ID={}, Possible Cause: Timeout or Explicit Invalidation", | ||
event.getSession().getId()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters