How to use the @openid/appauth/built/revoke_token_request.js.RevokeTokenRequest function in @openid/appauth

To help you get started, we’ve selected a few @openid/appauth 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 gyselroth / balloon-client-desktop / app / lib / oidc / controller.js View on Github external
function makeRevokeTokenRequest(configuration, refreshToken) {
    if(idpConfig.revokeAuthenticationRequired === false) {
      var request = new RevokeTokenRequest(refreshToken, 'refresh_token');
    } else {
      var request = new RevokeTokenRequest(refreshToken, 'refresh_token', idpConfig.clientId, idpConfig.clientSecret);
    }

    return tokenHandler.performRevokeTokenRequest(configuration, request).then(response => {
      logger.info('revoked refreshToken', {category: 'openid-connect'});
      return response;
    });
  }
github gyselroth / balloon-client-desktop / app / lib / oidc / controller.js View on Github external
function makeRevokeTokenRequest(configuration, refreshToken) {
    if(idpConfig.revokeAuthenticationRequired === false) {
      var request = new RevokeTokenRequest(refreshToken, 'refresh_token');
    } else {
      var request = new RevokeTokenRequest(refreshToken, 'refresh_token', idpConfig.clientId, idpConfig.clientSecret);
    }

    return tokenHandler.performRevokeTokenRequest(configuration, request).then(response => {
      logger.info('revoked refreshToken', {category: 'openid-connect'});
      return response;
    });
  }