Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppAuthError { message: 'Error: certificate has expired', extras: undefined } #225

Open
helianthus617 opened this issue Jun 26, 2023 · 1 comment

Comments

@helianthus617
Copy link

[REQUIRED] Describe expected behavior

I want to get the openid-configuration value like this ,

image

But

When the authorization_service_configuration.ts procedure execute the 77 line
image
it throws the exeception AppAuthError { message: 'Error: certificate has expired', extras: undefined }

[REQUIRED] Environment

  • AppAuth-JS version: __"@openid/appauth": "^1.2.7"
  • AppAuth-JS Environment (Node, Browser (UserAgent), ...): Node+ Electron.js_______
  • Source code snippts (inline or JSBin)
 static fetchFromIssuer(openIdIssuerUrl: string, requestor?: Requestor):
      Promise<AuthorizationServiceConfiguration> {
    const fullUrl = `${openIdIssuerUrl}/${WELL_KNOWN_PATH}/${OPENID_CONFIGURATION}`;

    const requestorToUse = requestor || new JQueryRequestor();

    return requestorToUse
        .xhr<AuthorizationServiceConfigurationJson>({url: fullUrl, dataType: 'json', method: 'GET'})
        .then(json => new AuthorizationServiceConfiguration(json));
  }

Which certificate does the error point ? where is the certificate from?

if someone needs the answer to reslove Please tell me , thanks a lot

@mattvalleycodes
Copy link

Most probably, it's certificate of the OAuth2 server which you cannot by pass out of the box. If you need to by-pass it, you can provide a custom Requester, and by-pass the error that way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants