openid / openid/AppAuth-JS

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

Open
#225 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1k
Forks
165
PR merge metrics
No merged PRs in 30d

Description

[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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at authorization_service_configuration.ts line 77 and trace the xhr call through JQueryRequestor in the Node and Electron environment. Check the issuer's openid-configuration endpoint and its certificate details; done means identifying the failing certificate source and documenting a reproducible resolution or provider-side cause.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, node.js, typescript
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.