简体   繁体   English

Keycloak H2 数据库中的空 SESSION 表

[英]Empty SESSION Table in Keycloak H2 Database

I'm using Keycloak 15.0.2 with the default H2 database.我将 Keycloak 15.0.2 与默认的 H2 数据库一起使用。 I have logged in several users and can get active session in the Keycloak session tab, but in DB, I cannot see any entries in all tables related to sessions like USER_SESSION and CLIENT_SESSION.我已经登录了几个用户,并且可以在 Keycloak session 选项卡中获得活动的 session,但是在 DB 中,我看不到与 USER_SESSION 和 CLIENT_SESSION 等会话相关的所有表中的任何条目。

Does anyone have any suggestion that how can I get these entries?有人对我如何获得这些条目有任何建议吗?

Thanks in advance.提前致谢。

Keycloak does not store sessions in the database, except for offline sessions. Keycloak 不在数据库中存储会话,离线会话除外。 Sessions are stored in-memory in Infinispan caches.会话存储在 Infinispan 缓存中的内存中。 You can use the REST API to access sessions.您可以使用 REST API 访问会话。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM