Skip to content

Commit 8e2a56a

Browse files
authored
Merge pull request #7 from ForgeRock/7.5.2-changes
7.5.2 updates
2 parents ad6f590 + ce49ebd commit 8e2a56a

4 files changed

Lines changed: 26 additions & 6 deletions

File tree

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ Deploy the node and set appropriate config values where:
3232

3333
Note: this replaces a previous version of the Input Collector Node which allowed multiple inputs to be collected. It's recommended instead to use this node in combination with a Page Node to achieve the same result.
3434

35+
<!-- SUPPORT -->
36+
## Support
37+
38+
If you encounter any issues, be sure to check our https://docs.pingidentity.com/ pages.
39+
40+
Support tickets can be raised whenever you need our assistance; here are some examples of when it is appropriate to open a ticket (but not limited to):
41+
42+
* Suspected bugs or problems with Ping Identity software.
43+
* Requests for assistance
44+
45+
You can raise a ticket using **[Ping Identity Support Portal](https://support.pingidentity.com/s/)**, our customer support portal that provides one stop access to Ping Identity services.
46+
47+
<!-- COLLABORATION -->
48+
3549
#### To Build
3650

3751
Edit the necessary InputCollectorNode.java as appropriate. To rebuild, run "mvn clean install" in the directory containing the pom.xml
@@ -44,4 +58,4 @@ The sample code described herein is provided on an "as is" basis, without warran
4458

4559
ForgeRock does not warrant, guarantee or make any representations regarding the use, results of use, accuracy, timeliness or completeness of any data or information relating to the sample code. ForgeRock disclaims all warranties, expressed or implied, and in particular, disclaims all warranties of merchantability, and warranties related to the code, or any service or software related thereto.
4660

47-
ForgeRock shall not be liable for any direct, indirect or consequential damages or costs of any type arising out of any action taken by you or others related to the sample code.
61+
ForgeRock shall not be liable for any direct, indirect or consequential damages or costs of any type arising out of any action taken by you or others related to the sample code.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>openam-auth-trees</artifactId>
2424
<groupId>org.forgerock.am</groupId>
25-
<version>6.5.0</version>
25+
<version>7.5.2</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

src/main/java/org/forgerock/openam/auth/nodes/InputCollectorNode.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import com.google.common.base.Strings;
4040
import org.slf4j.Logger;
4141
import org.slf4j.LoggerFactory;
42-
42+
import org.forgerock.openam.auth.node.api.NodeState;
4343
/**
4444
* A node which collects a username from the user via a name callback.
4545
*
@@ -81,6 +81,8 @@ public InputCollectorNode(@Assisted InputCollectorNode.Config config) {
8181
@Override
8282
public Action process(TreeContext context) {
8383

84+
NodeState ns = context.getStateFor(this);
85+
8486
String prompt = config.prompt();
8587
if ((prompt.indexOf("{{") == 0) && (prompt.indexOf("}}") == (prompt.length()-2))) {
8688
prompt = context.sharedState.get(prompt.substring(2,prompt.length()-2)).asString();
@@ -97,11 +99,15 @@ public Action process(TreeContext context) {
9799
.map(password -> {
98100
if (config.useTransient()) {
99101
logger.debug("[InputCollectorNode]: Storing user password input in transient shared state " + config.variable());
100-
return goToNext().replaceTransientState(context.transientState.copy().put(config.variable(), password)).build();
102+
103+
ns.putTransient( config.variable(), password);
104+
105+
return goToNext().build();
101106
}
102107
else {
103108
logger.debug("[InputCollectorNode]: Storing user password input in shared state " + config.variable());
104-
return goToNext().replaceSharedState(context.sharedState.copy().put(config.variable(), password)).build();
109+
ns.putShared(config.variable(), password);
110+
return goToNext().build();
105111
}
106112
})
107113
.orElseGet(() -> {

src/main/java/org/forgerock/openam/auth/nodes/InputCollectorNodePlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public InputCollectorNodePlugin(AnnotatedServiceRegistry serviceRegistry) {
5151

5252
@Override
5353
public String getPluginVersion() {
54-
return "1.0.0";
54+
return "1.0.1";
5555
}
5656

5757
@Override

0 commit comments

Comments
 (0)