Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Jan 18, 2024
2 parents 8a0a956 + b6935ae commit 01c0af2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/admin-gui/resource-wizard/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ More complex configuration is possible by clicking btn:[Edit] button:
[#use_inbound_for_correlation]
You can define the inbound mapping as ordinary (default), or you can specify *Use for* parameter with value `Correlation` in the *Optional configuration* of the mapping to use the mapping only during the correlation.
This is how you can define inbound mappings to be used in <<Correlation>> when item correlator is used, even for target resources where you normally have no inbound mappings at all.
For more information, please refer to xref:/midpoint/reference/correlation/example-4-correlation-for-outbound-resources[this example for correlation-only inbound mapping].
For more information, please refer to xref:/midpoint/reference/correlation/#example-4-correlation-for-outbound-resources[this example for correlation-only inbound mapping].

Mapping can be deleted by clicking btn:[Delete] button.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.Serial;
import java.net.URLEncoder;
import java.nio.charset.CharacterCodingException;
import java.nio.charset.StandardCharsets;
import java.util.*;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -1784,7 +1786,12 @@ private String createBaseConfirmationLink(String prefix, String oid) {
}

private String createTokenConfirmationLink(String prefix, UserType userType) {
return createBaseConfirmationLink(prefix, userType) + "&" + SchemaConstants.TOKEN + "=" + getNonce(userType);
try {
var urlEncodedNonce = URLEncoder.encode(getNonce(userType), StandardCharsets.UTF_8);
return createBaseConfirmationLink(prefix, userType) + "&" + SchemaConstants.TOKEN + "=" + urlEncodedNonce;
} catch (Exception e) {
throw new SystemException(e);
}
}

private String createPrefixLinkByAuthSequence(String channel, String nameOfSequence,
Expand Down

0 comments on commit 01c0af2

Please sign in to comment.