services/src/main/java/org/keycloak/services/resources/AttributeFormDataProcessor.java
/**
     * Looks for "user.attributes." keys in the form data and sets the appropriate UserModel.attribute from it.
     *
     * @param formData
     * @param realm
     * @param user
     */
Looks for "user.attributes." keys in the form data and sets the appropriate UserModel.attribute from it.


Looks for " user . attributes . " keys in the form data and sets the appropriate UserModel . attribute from it .
public static void process(MultivaluedMap<String, String> formData, RealmModel realm, UserModel user) {
        for (String key : formData.keySet()) {
            if (!key.startsWith("user.attributes.")) continue;
            String attribute = key.substring("user.attributes.".length());
            user.setAttribute(attribute, formData.getFirst(key));
        }
    }
public static void process ( MultivaluedMap < String , String > formData , RealmModel realm , UserModel user ) { for ( String key : formData . keySet ( ) ) { if ( ! key . startsWith ( "user.attributes." ) ) continue ; String attribute = key . substring ( "user.attributes." . length ( ) ) ; user . setAttribute ( attribute , formData . getFirst ( key ) ) ; } }
Looks for "user.attributes."
Looks for " user . attributes . "