IBM Verify

IBM Verify

Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Getting User Language from Session in Mapping Rules

  • 1.  Getting User Language from Session in Mapping Rules

    Posted Tue April 26, 2022 04:13 PM
    Hello All,

    I am working with an IBM SVA virtual appliance (v.10.0.2.0)

    We have a service provider who receives our users via SAML2. The requirement given to me is to set a group in the SAML message based on language preference. My first thought was to get this from the browser (en or es). The question is how do I get this value from within the Mapping Rules?

    The idea is to look for either 'en' or 'es' and then set a custom attribute based on the value. The partner will then use that to present the correct version of the application to the user.

    Thanks for any help in advance! If I've been unclear in any way, please let me know.

    ------------------------------
    David Gianetti
    ------------------------------


  • 2.  RE: Getting User Language from Session in Mapping Rules

    Posted Wed April 27, 2022 10:15 AM
    Hi David,

    I'd imagine you would want to simply read the value of the "Accept-Language" header that is coming from the browser client.

    To get the client headers into the infomap, I think you need to set this advanced configuration parameter:
    sps.httpRequestClaims.enabled
    to true.

    I hope that helps.

    Jon.

    ------------------------------
    Jon Harry
    Senior Technical Sales Enablement Specialist
    Identity and Access Management
    IBM Technology, Worldwide
    ------------------------------