Question 350
A reporting tool needs constrained access to an employee's calendar API and should not collect the employee's credentials. Which identity-and-access-management mechanism BEST meets this exact requirement?
Explanation
Correct Answer
Use OAuth 2.0 delegated authorization so the employee grants the reporting tool a scoped access token through an authorization server without giving the tool their login password. The calendar API can validate the token's audience, permissions, and expiry to restrict permitted actions. Choose an appropriate authorization-code flow with PKCE for public clients and avoid broader scopes than the report requires. OAuth supplies delegated API authorization; use OpenID Connect separately if verified user identity is also needed.
Incorrect Answers
Identity federation allows one trusted identity provider to authenticate users for external applications. It may help a reporting client establish a user session, but federation alone does not grant the client narrowly scoped permission to call the employee's calendar API. The immediate requirement is constrained delegated API authorization without revealing the user's password.
SAML federation uses identity assertions for sign-on to compatible service providers. A SAML login may establish who the employee is, but it does not inherently issue calendar API access scopes to a separate reporting tool. The scenario is explicitly about delegated resource access rather than an interactive browser SSO assertion.
LDAP allows authorized clients to query directory entries and group memberships inside an enterprise environment. It is not designed to obtain a short-lived delegated token for a third-party calendar API with user consent. Querying the employee's directory account cannot replace OAuth's resource-owner authorization flow or secure API access scope.