Tagged: ,

This topic contains 3 replies, has 3 voices, and was last updated by  Peter Major 2 months, 3 weeks ago.

  • Author
    Posts
  • #24520
     AJAY SURI 
    Participant

    Hi All

    I have created an authentication tree with a username and password collector nodes with a scripted authentication node (Groovy) at the end of it.

    In the script, accessing username as sharedState.get(‘username’) works fine but accessing password as sharedState.get(‘password’) results in an error.

    Please can you advise?

    #24521
     James Phillpotts 
    Moderator

    Hi Ajay,

    You don’t specify which version of AM you are using, but in AM6+ the password is in the transientState object rather than the sharedState, and is only available during the request in which it was submitted from the user agent. However, the transientState is not currently available from a scripted node (it has been raised as an improvement request, but we have not had a chance to add it yet), so you will need to implement a Java node rather than a script.

    Cheers
    James

    #24522
     AJAY SURI 
    Participant

    Thanks James for clarification,

    I am using AM 6.5.

    The objective is to collect a username and password and validate it against an Oracle database table.

    I have previously used the JDBC authentication module but couldn’t find a node that will do something similar.

    I went for a scripted node to try reduce the time, as creating a custom node would have taken longer for me.

    Are you aware of any JDBC authentication node created by community or ForgeRock please?

    #24546
     Peter Major 
    Moderator

    The transient state is not currently available to scripted nodes, see:
    https://bugster.forgerock.org/jira/browse/OPENAM-13217

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

You must be logged in to reply to this topic.

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