Skip to content
Snippets Groups Projects
  • Lukas Reschke's avatar
    92c74d2f
    Don't force displayname if backend already provides one · 92c74d2f
    Lukas Reschke authored
    
    `\OC_User::loginWithApache` is used in combination with backend mechanisms like our SSO / SAML integration. Those can optionally already provide a displayname using other means. For example by mapping SAML attributes.
    
    The current approach makes it however impossible for backends using `\OCP\Authentication\IApacheBackend` to set a displayname on their own. Because the display name will simply be overwritten with the loginname.
    
    Signed-off-by: default avatarLukas Reschke <lukas@statuscode.ch>
    92c74d2f
    History
    Don't force displayname if backend already provides one
    Lukas Reschke authored
    
    `\OC_User::loginWithApache` is used in combination with backend mechanisms like our SSO / SAML integration. Those can optionally already provide a displayname using other means. For example by mapping SAML attributes.
    
    The current approach makes it however impossible for backends using `\OCP\Authentication\IApacheBackend` to set a displayname on their own. Because the display name will simply be overwritten with the loginname.
    
    Signed-off-by: default avatarLukas Reschke <lukas@statuscode.ch>