Open Closed

Prevent concurrent login in OpenIddict #8583


User avatar
0
lht0502 created
  • ABP Framework version: v8.2.3
  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

My Auth Server and API application are pointing to two different databases. When using the Prevent Concurrent Login feature, the API application shows the error: "User not found: 23e9be9c-4d8b-3386-26ae-3a173e912fde."

How can I configure the API application to check the AbpSessions table in the same database as the Auth Server while storing transaction data in a separate database? Thanks

Api application

Auth Server


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can configure the connection to specify DbContext.

    For your case you need to change the connection string for IIdentityProDbContext(IIdentityDbContext)

    https://abp.io/docs/latest/framework/fundamentals/connection-strings

  • User Avatar
    0
    lht0502 created

    It works. Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Good news.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 18, 2025, 07:10