def validate_auth_option(option, value):
    lower, value = validate(option, value)
    if lower not in _AUTH_OPTIONS:
        raise ConfigurationError('Unknown '
                                 'authentication option: %s' % (option,))
    return lower, value
Validate optional authentication parameters.
dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/common.py/validate_auth_option