IdentityModel / oidc-client-js

OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications
Apache License 2.0
2.43k stars 842 forks source link

Slient renew openid-configuration is being canceled #1387

Open ebinroy opened 3 years ago

ebinroy commented 3 years ago

Hi, I am using "oidc-client": "^1.11.5", While calling silent renew openid-configuration is being canceled

in silent-callback.html

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=1024, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <!--copied from the oidc-client package-->
  <script src="/assets/oidc-client.min.js"></script>
</head>

<body>
  <script>

    //same as the auth config settings
    const stsSettings = {
      authority: "https://localhost:5000/",
      client_id: "AngularClient",
      scope: "openid profile api1 ",
      response_type: "code",
    };

    new Oidc.UserManager(stsSettings).signinSilentCallback().catch(error => {
      debugger;
      console.error("######## Silent call back -> ", error);
    });

  </script>
</body>

</html>

In chrome network tab I am getting below error but access token is being renewed without any issue. What is the cause of this being cancelled? Kindly advise

1 2