def base64_add_padding(string):
    """
    Add padding to a URL safe base64 string.
    :param string: Non-padded Url-safe Base64 string.
    :return: Padded Url-safe Base64 string.
    """
    while len(string) % 4 != 0:
        string += "="
    return string