Symantec Access Management

  • 1.  ScoringCallout: Username

    Posted Jul 18, 2018 11:28 AM

    Hi,

    Is there a way one can get the username on the scoring callout servlet. This field is available on the EvalCallout Servlet, I am just confused at to why it was not included in the scoring call-out

    Thanks

    Kp



  • 2.  Re: ScoringCallout: Username
    Best Answer

    Broadcom Employee
    Posted Jul 26, 2018 08:39 PM

    Scoring callout doesn't have a direct method to get UserId by design as its main purpose is to provide the Scoring capability. There can be a rule set which doesn't require UserId.

     

    Having said that you can use the following method to retrieve any value ( i.e. in your case set it to UserId) that is set by EvalCallout.

     

    scoringDoc.getScoringCallout().getCalloutModifier().getModifier();

     

    Set this value in Eval Callout:

    EvalCalloutResponse evalResp = EvalCalloutResponse.Factory.newInstance(xmlOpt);

    evalResp.setModifier(<UserId>);