gcb_web_auth/backends/dukeds.py
def harmonize_user_details(self, details):
        """
        Overrides harmonize_user_details in BaseBackend to append @duke.edu to usernames from DukeDS
        :param details: incoming dictionary of user details
        :return: details harmonized for a django user object
        """
        details = super(DukeDSAuthBackend, self).harmonize_user_details(details)
        # For DukeDS, we need to append @duke.edu to username
        if 'username' in details:
            details['username'] = '{}@duke.edu'.format(details['username'])
        return details

        Overrides harmonize_user_details in BaseBackend to append @duke.edu to usernames from DukeDS
        :param details: incoming dictionary of user details
        :return: details harmonized for a django user object
        
Overrides harmonize_user_details in BaseBackend to append @duke.edu to usernames from DukeDS
Overrides harmonize_user_details in BaseBackend to append @duke . edu to usernames from DukeDS
def harmonize_user_details(self, details):
        details = super(DukeDSAuthBackend, self).harmonize_user_details(details)
        if 'username' in details:
            details['username'] = '{}@duke.edu'.format(details['username'])
        return details
def harmonize_user_details ( self , details ) : details = super ( DukeDSAuthBackend , self ) . harmonize_user_details ( details ) if 'username' in details : details [ 'username' ] = '{}@duke.edu' . format ( details [ 'username' ] ) return details
Overrides harmonize_user_details in BaseBackend to append @duke.edu to usernames from DukeDS
Overrides harmonize_user_details in BaseBackend to append @duke . edu to usernames from DukeDS
"""
        Overrides harmonize_user_details in BaseBackend to append @duke.edu to usernames from DukeDS
        :param details: incoming dictionary of user details
        :return: details harmonized for a django user object
        """ # For DukeDS, we need to append @duke.edu to username
details harmonized for a django user object
details harmonized for a django user object
self
details
incoming dictionary of user details
incoming dictionary of user details