Australian-Imaging-Service / xnat-openid-auth-plugin

GNU General Public License v3.0
3 stars 1 forks source link

AAF accounts leaves Last name blank #3

Open aswinnarayanan opened 3 years ago

aswinnarayanan commented 3 years ago

AAF sign in leaves the Last Name field empty. It maps the User's title and full name onto the "First Name" field in the xnat local account.

e.g. XNAT AAF user details becomes

Last Name being a required field, leads to unexpected behaviour in a number of forms, especially user admin pages.

markendr commented 2 years ago

Looks this can be resolved with property settings in $XNAT_HOME/config/auth/openid-provider.properties

The sample AAF properties file currently has: openid.aaf.familyNameProperty=deliberately_unknown_property openid.aaf.givenNameProperty=name

Given and family names are correctly set after changing these to: openid.aaf.familyNameProperty=family_name openid.aaf.givenNameProperty=given_name

If no concerns, the sample AAF properties file could be updated to match..