Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

Hi @hsluoyz , the Session IDs that casdoor issues and maintains for a login

Screenshot_2025-10-29_at_9.05.18_PM.png

Screenshot_2025-10-29_at_9.07.56_PM.png

Hi, I’m testing the OIDC logout flow using the /api/logout endpoint by sending an id_token_hint. I noticed that while this call expires the access_token , the corresponding casdoor_session_id record under Sessions in Casdoor is not deleted.

Looking at the code, I found that session deletion uses Beego’s context (c.Ctx.Input.CruSession.SessionID()),:

owner, username := util.GetOwnerAndNameFromId(user)
_, err = object.DeleteSessionId(util.GetSessionId(owner, username, object.CasdoorApplication), c.Ctx.Input.CruSession.SessionID())
if err != nil {
    c.ResponseError(err.Error())
    return
}

Is this the expected behavior for /api/logout?
If so, what’s the recommended way to delete a specific casdoor_session_id entry in Casdoor when logging out through this endpoint?

Hey, quick question 👋
In the Casdoor User schema there’s a "properties" field (map[string]string). Is this mainly for Casdoor’s own use, or can we use it to store extra app-specific user details during migration (fields that don’t fit into the core schema)?

Screenshot_2025-08-22_at_2.05.45_PM.png