Can't get attributes in HTTP headers

This topic has 1 reply, 2 voices, and was last updated 4 years, 10 months ago by Abdel.

  • Author
    Posts
  • #14515
     Nadia_Mahf
    Participant

    Hi,

    Can you, please, help me in setting up config and agents so attributes are passed to the client? I can’t get these attributes in headers. They won’t be visible to the user’s browser.
    I need some code in C# to access to them. Can you help me?

    Thank you.

    #14526
     Abdel
    Participant

    Hi Nadia,
    In OpenAM, go to: <Web Agents> -> [Agent Name] -> Application -> Profile Attribute Map: you map the attributes you need to pass to the agent. There are so many blogs on this. For instance: https://onemoretech.wordpress.com/2012/07/20/custom-attributes-and-openam-headers/

    One thing is clear to me, you won’t be able to see those attributes in the browsers, or HTTP sniffers… But in your code, you read them from the request object.

    I have not done c# in more than 8 years, but you read headers with a code of this nature:

    string myAttr= Request.Headers[“MyATTRIBUTE”]; //MY ATTRIBUTE is the label you set in OpenAM

    Hope this helps!

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

You must be logged in to reply to this topic.

©2021 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?