Gemini Live API Web Console Access

I’m trying to use the above code and it asks for a Google API Key. I have a GCP account where generating API keys is disabled for security reasons and instead it suggests using Workload Identiy Federation. How do I use that with the above code instead of an API key?