PT-AM-CPE practice question 16 of 35

Which of the following options represents best practice for an implementation that configures an ID token in a subject condition for policies validating the token's claims?

Full set: 100 questions
Answer options
A: Policy evaluation only validates the claims, not the ID token. The ID token should be validated after making the policy evaluation request
B: Policy evaluation only validates the claims, not the ID token. There is no need to validate the ID token that was obtained before the policy is evaluated
C: Policy evaluation only validates the claims, not the ID token. The ID token should be validated before making the policy evaluation request Correct answer
D: Policy evaluation validates the claims and the ID token. There is no need to validate the ID token before the policy is evaluated
Correct Answer:
C. Policy evaluation only validates the claims, not the ID token. The ID token should be validated before making the policy evaluation request
Explanation

The PingAM policy engine is designed for authorization, not for token validation. It evaluates the claims within a provided JWT against policy conditions but inherently trusts that the JWT itself is valid. Therefore, the best practice is for the client or API gateway to first validate the ID token's signature, issuer, audience, and expiration. Only after the token's authenticity and integrity are confirmed should it be passed to PingAM for fine-grained policy decisions based on its claims.

Why Incorrect

A. Validating the token after policy evaluation is insecure, as an action may have been permitted based on a fraudulent token.
B. Failing to validate the ID token at all is a major security vulnerability, as it allows forged tokens to be used.
D. The PingAM policy engine does not validate the ID token itself; it only evaluates the claims within it. Relying on it for validation is incorrect.

References

1. Ping Identity, Access Management Documentation, "Policy conditions", Section: "JWT claims in subject conditions". The documentation explicitly states: "AM policy evaluation only validates the claims, not the JWT itself. The JWT should be validated before making the policy evaluation request."

2. OpenID Connect Core 1.0 specification, Section 3.1.3.7 "ID Token Validation". This standard, which PingAM implements, outlines the mandatory steps a client MUST perform to validate an ID Token before its contents can be trusted and used.

Scroll to Top