Soru

Zorluk: ZorAuthentication, Authorization, and Accounting (AAA)

A security engineer is integrating an identity provider (IdP) with an internal web application using OpenID Connect (OIDC) and OAuth 2.0. During testing, users successfully authenticate at the IdP prompt and receive a valid ID token verifying their credentials. However, when the web application presents the accompanying access token to a backend microservice to update sensitive records, the backend service returns an HTTP 403 Forbidden status code because the token is missing the required write permission scope. Which core pillar of the AAA framework is directly failing in this scenario, and why?

  1. Authorization, because while user identity was verified during authentication, the access token lacks the required permissions scope to perform the requested operation.Cevap
  2. B
    Authentication, because the backend microservice failed to validate the identity of the user presenting the access token before evaluating permissions.
  3. C
    Accounting, because the API gateway failed to log the user's session state and request payload prior to passing the token to the microservice.
  4. D
    Authorization, because internal microservice communication within a trusted perimeter network should bypass token scope checks entirely.

Cevap

Authorization failed because user identity was successfully authenticated, but the issued access token lacked the required permission scopes to perform the requested operation.
The correct response highlights that Authorization is the specific AAA component failing. Authentication was successfully completed when the identity provider verified the user's credentials and issued the ID token. However, when requesting the backend resource, the access token lacked the required scope attributes to permit write operations, resulting in an authorization failure (HTTP 403 Forbidden).

Adım Adım Çözüm

1
Analyze the scenario metrics and log responses
User credentials were validated and an ID token was issued (Authentication succeeded). The backend returned HTTP 403 Forbidden due to missing scope attributes.
Differentiating between identity validation and permission assignment is essential for identifying the specific AAA stage.
2
Map the error behavior to the AAA framework
HTTP 403 Forbidden corresponds to permission enforcement failure (Authorization), whereas HTTP 401 Unauthorized corresponds to identity proof failure (Authentication).
Authorization enforces access rights based on policies, roles, or scopes after identity is established.
3
Evaluate the correct operational function of AAA pillars
The failure occurs at the authorization layer due to missing privilege scopes on the access token presented to the backend resource.
Proper AAA implementation isolates authentication (identity verification) from authorization (permission evaluation).

Anahtar Kavram

Distinction between Authentication (proving identity) and Authorization (granting permissions) within OAuth 2.0 / OIDC and AAA frameworks
Tahmini Süre:2m 0s
Bu soruyu puanla