How to find Shared State Object Name?

This topic has 3 replies, 4 voices, and was last updated 3 weeks, 2 days ago by Andrew Potter.

  • Author
    Posts
  • #27866
     ldeng_lowes
    Participant

    Is there a way to find the list of available Shared State Object Names in an Authentication Tree? For example, I have an HOTP Auth Tree and I would like to know what Shared State Object Name for the generated OTP value so that I can retrieve and use it.

    Thanks for the help.

    Best,
    Le

    #27868
     Jatinder Singh
    Participant

    Looking at the source code for HOTP, the value is not saved in shared state. It is forwarded to HOTPService for sending it to a user via SMSGateway.

    You can get access to shared state using the variable sharedState. And if you log shared state variable, it will print all of its k-v pairs to give you an idea of what it contains.

    #27871
     Scott Heger
    Participant

    Attaching your IDE to a debugger and watching while executing the flow lets you see what all you have access to.

    #27896
     Andrew Potter
    Participant

    This community node is ideal for debugging sharedState data – it logs out the current information to a debug file, optionally including Transient state: Debug node

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

You must be logged in to reply to this topic.

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