Open Closed

[Authentication] - Testing Dev Environment In Future #6388


User avatar
0
trannguyenphucanh created

Hi Support Team,

I want to test my develop environment at year end timestamp, so I changed host server date setting & my local setting to midnight of 31 Dec 2023.

However, after logging in dev, the browser tab was reloading infinitely and the console showed this:

My app stores token in local storage, I tried clearing them but it kept reloading, I also tried incognito mode but it is the same.

Is there a way to solve this?

  • ABP Framework version: v5.3.3
  • UI Type: Angular
  • Database System: EF Core
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    ABP uses angular-oauth2-oidc libary, you can check the code here: https://github.com/manfredsteyer/angular-oauth2-oidc/blob/f1d3c38bdc77b37a21df2e63f8cbe40eadfc6152/projects/lib/src/oauth-service.ts#L2268-L2279

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    trannguyenphucanh created

    Thanks liangshiwei. Is there a way to log/increase the value of clockSkewInMSec? I tried a few ways but it did not work, nor did I can log the value.

    I tried changing the value in .NET: In app.component:

    Could you take a look at this?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    Will it work if you configure the clockSkewInSec in environment file?

    export const environment = {
      production: false,
      application: {
        baseUrl,
        name: 'MyProjectName',
        logoUrl: '',
      },
      oAuthConfig: {
        issuer: 'https://localhost:44305/',
        redirectUri: baseUrl,
        clientId: 'MyProjectName_App',
        responseType: 'code',
        scope: 'offline_access MyProjectName',
        requireHttps: true,
        clockSkewInSec: 100
      },
      apis: {
        default: {
          url: 'https://localhost:44305',
          rootNamespace: 'MyCompanyName.MyProjectName',
        },
      },
    } as Environment;
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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.8.0-preview. Updated on September 23, 2026, 09:57
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.