In order to interact with Google Cloud resources, users must authenticate against Google Cloud and grant authorization to the tools in the Google Cloud SDK. If you've just run the gcloud init command, your machine should be fully authorized. When using the Google Cloud Shell, your session will be authorized against the current project by default. Google uses OAuth 2.0 for API access. When a user authorizes the SDK, Google will store an access token for that user locally for later use. The gcloud CLI contains tools for managing authentication and authorization under the gcloud auth command group.
Login is a straightforward process; simply run gcloud auth login to open a new browser window and confirm the authorization request. ...