PROFESSIONAL-CLOUD-DEVELOPER · Question #235
PROFESSIONAL-CLOUD-DEVELOPER Question #235: Real Exam Question with Answer & Explanation
The correct answer is D: 1. When a user arrives at your application, route them to a Google Cloud consent screen with a. https://developers.google.com/identity/protocols/oauth2#webserver The Google OAuth 2.0 endpoint supports web server applications that use languages and frameworks such as PHP, Java, Python, Ruby, and ASP.NET. The authorization sequence begins when your application redirects a bro
Question
You are developing a Java Web Server that needs to interact with Google Cloud services via the Google Cloud API on the user's behalf. Users should be able to authenticate to the Google Cloud API using their Google Cloud identities. Which workflow should you implement in your web application?
Options
- A1. When a user arrives at your application, prompt them for their Google username and
- B1. When a user arrives at your application, prompt them for their Google username and
- C1. When a user arrives at your application, route them to a Google Cloud consent screen with a
- D1. When a user arrives at your application, route them to a Google Cloud consent screen with a
Explanation
https://developers.google.com/identity/protocols/oauth2#webserver The Google OAuth 2.0 endpoint supports web server applications that use languages and frameworks such as PHP, Java, Python, Ruby, and ASP.NET. The authorization sequence begins when your application redirects a browser to a Google URL; the URL includes query parameters that indicate the type of access being requested. Google handles the user authentication, session selection, and user consent. The result is an authorization code, which the application can exchange for an access token and a refresh token.
Topics
Community Discussion
No community discussion yet for this question.