diff --git a/google/cloud/aiplatform/initializer.py b/google/cloud/aiplatform/initializer.py index ab978b4d76..99d2bc82ea 100644 --- a/google/cloud/aiplatform/initializer.py +++ b/google/cloud/aiplatform/initializer.py @@ -719,10 +719,10 @@ def _set_async_rest_credentials(credentials: AsyncCredentials): raise ValueError( "Async REST transport requires async credentials of type" + f"{AsyncCredentials} which is only supported in " - + "google-auth >= 2.35.0.\n\n" + + "google-auth == 2.36.0.\n\n" + "Install the following dependencies:\n" + "pip install google-api-core[grpc, async_rest] >= 2.21.0\n" - + "pip install google-auth[aiohttp] >= 2.45.0\n\n" + + "pip install google-auth[aiohttp] == 2.36.0\n\n" + "Example usage:\n" + "from google.auth.aio.credentials import StaticCredentials\n" + "async_credentials = StaticCredentials(token=YOUR_TOKEN_HERE)\n" diff --git a/noxfile.py b/noxfile.py index 2ea6d71713..596752c0b0 100644 --- a/noxfile.py +++ b/noxfile.py @@ -628,7 +628,7 @@ def prerelease_deps(session): # Remaining dependencies other_deps = [ "requests", - "google-auth", + "google-auth==2.36.0", ] session.install(*other_deps) diff --git a/setup.py b/setup.py index 958205c4e1..4389885f77 100644 --- a/setup.py +++ b/setup.py @@ -307,7 +307,7 @@ "google-api-core[grpc] >= 1.34.1," " <3.0.0,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*" ), - "google-auth >= 2.45.0, <3.0.0", + "google-auth >= 2.36.0, <3.0.0", "proto-plus >= 1.22.3, <2.0.0", "protobuf>=3.20.2,<7.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5", "packaging >= 14.3",