import base64


def decode_authn_string(authn_string):
    """Decodes a hexadecimal authentication string into a MongoDB connnection URI"""
    return base64.urlsafe_b64decode(authn_string.encode('utf-8')).decode('utf-8')