1) Update the STATIC_USER entry in the default authentication.json to look like so:
The change is merely the addition of the trivial augmentSecurityContext script, which attempts to set the authenticationId to "foo".
2) Start IDM and make this curl request to see the resultant security context:
The value returned for "authenticationId" should be "foo".
The value returned for "authenticationId" is "anonymous".
The expectation is based on this code in AugmentScriptExecutor.java:74:
This clearly expects the augment script to set the "authenticationId" as part of its response object; when set, the call to securityContextMapper.setAuthenticationId is clearly supposed to result in an updated authenticationId.