Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 658644956
  • Loading branch information
colaboratory-team committed Aug 2, 2024
1 parent ec2ae21 commit 270ca60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions google/colab/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit 270ca60

Please sign in to comment.