SimplePostLoginC14NConfiguration
Current File(s): conf/c14n/subject-c14n.properties, conf/c14n/subject-c14n.xml
Format: Properties, Native Spring
Overview
The “simple” post-login subject c14n method does a routine extraction of a singke UsernamePrincipal from the Java Subject and returns it as the canonincal principal name for the subject. It also supports some optional transforms to apply to the name.
This flow will succeed if and only if the input Java Subject contains exactly one UsernamePrincipal in its collection of Principals.
Configuration
Method Settings
Use conf/c14n/subject-c14n.properties to configure this method.
If your system has been upgraded, you may continue to use conf/c14n/simple-subject-c14n-config.xml as before, or you may remove it, while ensuring the new properties are being loaded.
The regular expression replacement feature is the only bit remaining that still requires XML and you may define that bean, if needed, in conf/c14n/subject-c14n.xml
By default, the only transform applied is a trim of leading or trailing whitespace. Case-folding and regular expression replacements can be added, per the reference below.
Enabling this Method
Reference