Google Professional Cloud Security Engineer Question 97
Select 2Google Cloud PlatformYour company has implemented a custom web application hosted on Google Cloud that requires single sign-on (SSO) for its users. The company uses an identity provider (IdP) that supports SAML 2.0. You also want to allow third-party applications to access specific user data from this web application using OAuth 2.0. What steps should you take to configure authentication and authorization for the application?
- A
Configure the web application as a SAML service provider and integrate it with the company's IdP for SSO.
- B
Implement an OAuth 2.0 authorization server within the web application to manage access tokens for third-party applications.
- C
Use Google Cloud Identity-Aware Proxy (IAP) to handle both SAML-based SSO and OAuth 2.0 flows automatically.
- D
Create an OAuth 2.0 client ID in Google Cloud and configure it to work with the web application for user authentication.
- E
Enable the Google Cloud SAML SSO API to directly validate tokens issued by the identity provider.
Show answer and explanation
Correct answers: A, B
Explanation
To achieve SSO using SAML, the web application needs to act as a SAML service provider and integrate with the company's IdP. For granting third-party applications access to specific user data, implementing an OAuth 2.0 authorization server within the application is necessary. These configurations ensure secure authentication and authorization flows. Other options like using IAP or creating a Google OAuth client ID are not applicable to this scenario.
- A. Correct.
Correct: Configuring the web application as a SAML service provider allows it to authenticate users through the company's IdP, enabling SSO.
- B. Correct.
Correct: An OAuth 2.0 authorization server is necessary to issue and validate access tokens for third-party applications requesting user data.
- C. Incorrect.
Incorrect: While Identity-Aware Proxy (IAP) can simplify securing web applications, it does not natively handle the combination of SAML SSO and custom OAuth 2.0 flows.
- D. Incorrect.
Incorrect: Creating an OAuth 2.0 client ID is specific to Google APIs and is not relevant for setting up custom SAML SSO or OAuth 2.0 for the web application.
- E. Incorrect.
Incorrect: The Google Cloud SAML SSO API does not exist for this purpose. SAML token validation is handled between the service provider and the IdP.