From 270ca6070f9f014695d76ae32c6071cd0c1288b1 Mon Sep 17 00:00:00 2001 From: Google Colaboratory Team Date: Thu, 1 Aug 2024 21:04:20 -0700 Subject: [PATCH] No public description PiperOrigin-RevId: 658644956 --- google/colab/auth.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/google/colab/auth.py b/google/colab/auth.py index 86c71b67..83534154 100644 --- a/google/colab/auth.py +++ b/google/colab/auth.py @@ -261,6 +261,12 @@ def authenticate_user(clear_output=True, project_id=None): Raises: errors.AuthorizationError: If authorization fails. """ + if _os.environ.get('VERTEX_PRODUCT') == 'COLAB_ENTERPRISE': + print( + 'WARNING: google.colab.auth.authenticate_user() is not supported in' + ' Colab Enterprise.' + ) + return use_auth_ephem = _os.environ.get('USE_AUTH_EPHEM', '0') == '1' colab_tpu_addr = _os.environ.get('COLAB_TPU_ADDR', '') configure_tpu_auth = (