verifySAMLResponseByABLCRule(response) {
    const rule = this.crowi.configManager.getConfig('crowi', 'security:passport-saml:ABLCRule');
    if (rule == null) {
      debug('There is no ABLCRule.');
      return true;
    }

    const luceneRule = this.parseABLCRule(rule);
    debug({ 'Parsed Rule': JSON.stringify(luceneRule, null, 2) });

    const attributes = this.extractAttributesFromSAMLResponse(response);
    debug({ 'Extracted Attributes': JSON.stringify(attributes, null, 2) });

    return this.evaluateRuleForSamlAttributes(attributes, luceneRule);
  }
/**
   * Verify that a SAML response meets the attribute-base login control rule
   */
Verify that a SAML response meets the attribute-base login control rule
Verify that a SAML response meets the attribute - base login control rule
verifySAMLResponseByABLCRule(response) {
    const rule = this.crowi.configManager.getConfig('crowi', 'security:passport-saml:ABLCRule');
    if (rule == null) {
      debug('There is no ABLCRule.');
      return true;
    }
    const luceneRule = this.parseABLCRule(rule);
    debug({ 'Parsed Rule': JSON.stringify(luceneRule, null, 2) });
    const attributes = this.extractAttributesFromSAMLResponse(response);
    debug({ 'Extracted Attributes': JSON.stringify(attributes, null, 2) });
    return this.evaluateRuleForSamlAttributes(attributes, luceneRule);
  }
verifySAMLResponseByABLCRule ( response ) { const rule = this . crowi . configManager . getConfig ( 'crowi' , 'security:passport-saml:ABLCRule' ) ; if ( rule == null ) { debug ( 'There is no ABLCRule.' ) ; return true ; } const luceneRule = this . parseABLCRule ( rule ) ; debug ( { 'Parsed Rule' : JSON . stringify ( luceneRule , null , 2 ) } ) ; const attributes = this . extractAttributesFromSAMLResponse ( response ) ; debug ( { 'Extracted Attributes' : JSON . stringify ( attributes , null , 2 ) } ) ; return this . evaluateRuleForSamlAttributes ( attributes , luceneRule ) ; }
Verify that a SAML response meets the attribute-base login control rule
Verify that a SAML response meets the attribute - base login control rule