QuestionQ48

VerifiedIntegrating applications with Google Cloud services

You are building a Java web server that must interact with Google Cloud services through the Google Cloud API on a user's behalf. Users need to authenticate to the Google Cloud API with their Google Cloud identities. Which workflow should your web application implement?

Explanation

Google web-server applications use the OAuth 2.0 authorization-code flow for user-delegated API access: redirect the user to Google to authenticate and grant the requested scopes, receive the authorization code at the application’s redirect endpoint, exchange that code with Google’s authorization server for an access token, and use the token to call the API. User passwords must not be collected or forwarded by the application, and an authorization code is not used directly as an API credential.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!