how to custom a HTTP header to an web application

This topic has 2 replies, 2 voices, and was last updated 6 years, 2 months ago by superzlc.

  • Author
  • #12242

    I want to send a custom HTTP header to an agent protected application when policy evaluation was successful.
    Appreciate for any help.


    You can simply define the customized header as the instruction in the Profile Attributes Processing (or other Attributes Processing section) as instructed in the screen

    Maps the profile attributes to be populated under specific names for the currently authenticated user. (property name: com.sun.identity.agents.config.profile.attribute.mapping)
    Hot-swap: Yes
    To populate the value of profile attribute cn under name CUSTOM-Common-Name: enter cn in Map Key field, and enter CUSTOM-Common-Name in Corresponding Map Value field.
    To populate the value of profile attribute mail under name CUSTOM-Email: enter mail in Map Key field, and enter CUSTOM-Email in Corresponding Map Value field.

    i.e, you have LDAP attribute such as uid and you want to return to the application as SSO_UID, you simply add the followig mapping





    Thanks for your help.
    I tested the solution and it worked well.
    However, when I was trying to map one key to multiple values,it failed.
    For example,
    [cn] = test1
    [cn] = test2
    [cn] = test3…
    I cannot save the configuration with an error alert:
    Plug-in com.sun.identity.idim.plugins.internal.AgetnsRepo:Error while setting attributes for agentonly=WebAgent
    Is there any solution?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?