def get_identity(self, processor, user, sp_config):
        """ Create Identity dict (using SP-specific mapping)
        """
        sp_mapping = sp_config.get('attribute_mapping', {'username': 'username'})
        return processor.create_identity(user, sp_mapping, **sp_config.get('extra_config', {}))
Create Identity dict (using SP-specific mapping)