Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Token Authenticate time-out after long time usage with same user #10545


User avatar
0
SBJ created

Product version: 8.7 Product type: MVC / Jquery Product framework type: ASP .NET CORE 3.1

Hi,

For our (MVC / Vue) Front-ends we use an APIUser account to do token based authentication with the ASP.net zero back-end to call a number of AppServices.

The problem is that after a while depending on the load of the front-end (number of token authentications) the user becomes unusable because the token authentication takes a very long time or eventually time-outs. If we try to use postman for example, we get the same behaviour. The only solution is creating a new user with the same permissions and use that one, until the problem occurs again.

Is this a cache-issue or is there another way to solve this, or, so to say, reset the user?

Thanks,

Dave van de Ven


5 Answer(s)
  • User Avatar
    0
    musa.demir created

    Hi @SBJ

    Is there any error in your log file? If not, could you please check what took so long? You can check your log file to see the execution times:

  • User Avatar
    0
    SBJ created

    Hi Musa,

    No, no error and no INFO lines.

    I just checked with postman and any call from a 'congested' user takes about 1 minute and 40 seconds..

    Greetings, Dave

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @SBJ

    Could you check the AbpUserTokens table to see if it has many records for the user you are having a problem ?

    Thanks,

  • User Avatar
    0
    SBJ created

    Hi Musa,

    Yes, almost 14.300 records.

    Greetings, Dave

  • User Avatar
    0
    musa.demir created

    Hi @SBJ

    Can you please set your log level to debug. Then reproduce the problem again and check what is taking too long.