Open Closed

Handling login mutex with OpenIDDict #3709


User avatar
0
xiexingen created
  • ABP Framework version: v6.0.0-rc.4
  • Scenes
  • step1 use admin login system,generate token ,we call this token is token1
  • in other browser also use admin login system, generate token2, at the same time token1 should is can no longer be used.

my thoughts

  • record token to cache as whitelist when user login generate token(at the same time remove this user other token)
  • while user request server vertify token check token are in cache when request . how to extend openiddict implement this need

1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can custom the events model.

    See: https://documentation.openiddict.com/guides/index.html#events-model, https://github.com/openiddict/openiddict-core/issues/1477#issuecomment-1166658609

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11