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:

3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team 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

  • 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?

  • User Avatar
    0
    liangshiwei created
    Support Team 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;
    
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11