How to use the angular-oauth2-oidc-jwks.JwksValidationHandler function in angular-oauth2-oidc-jwks

To help you get started, we’ve selected a few angular-oauth2-oidc-jwks examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github simpleidserver / SimpleIdServer / src / Website / SimpleIdServer.Website / angularApp / app / app.component.ts View on Github external
private configureAuth() {
    this.oauthService.configure(authConfig);
    this.oauthService.tokenValidationHandler = new JwksValidationHandler();
    let self = this;
    this.oauthService.loadDiscoveryDocumentAndTryLogin({
      disableOAuth2StateCheck: true
    });    
    this.sessionCheckTimer = setInterval(function () {
      if (!self.oauthService.hasValidIdToken()) {
          self.oauthService.logOut();
          self.route.navigate(["/"]);
      }            
    }, 3000);
  }
}

angular-oauth2-oidc-jwks

Support for OAuth 2 and OpenId Connect (OIDC) in Angular. Already prepared for the upcoming OAuth 2.1.

MIT
Latest version published 9 months ago

Package Health Score

76 / 100
Full package analysis

Popular angular-oauth2-oidc-jwks functions