nerdexam
CompTIA

CAS-005 · Question #514

A security architect is troubleshooting an issue with an OIDC implementation. The architect reviews the following configuration and errors: Error: Invalid authentication request code Which of the foll

The correct answer is A. The redirect-url parameter is not in the allowed list of redirect hosts in the configuration.. In OIDC, the redirect_uri must exactly match one of the allowed redirect URIs configured in the authorization server. If it is missing or not in the allowed list, the server will return an "invalid authentication request code" error, which fits the scenario shown.

Submitted by ashley.k· Mar 6, 2026Security Architecture

Question

A security architect is troubleshooting an issue with an OIDC implementation. The architect reviews the following configuration and errors:

Error: Invalid authentication request code Which of the following is the most likely cause of the error?

Exhibits

CAS-005 question #514 exhibit 1
CAS-005 question #514 exhibit 2

Options

  • AThe redirect-url parameter is not in the allowed list of redirect hosts in the configuration.
  • BIntrospection is not enabled within the OIDC code implementation.
  • CThe encoding of the URL parameters on the proxy system is failing.
  • DThe parameter is being reused within the authentication challenge.
  • EOAuth 2.0 was unable to verify the lack of an interception attack.

How the community answered

(28 responses)
  • A
    75% (21)
  • B
    11% (3)
  • C
    7% (2)
  • D
    4% (1)
  • E
    4% (1)

Explanation

In OIDC, the redirect_uri must exactly match one of the allowed redirect URIs configured in the authorization server. If it is missing or not in the allowed list, the server will return an "invalid authentication request code" error, which fits the scenario shown.

Community Discussion

No community discussion yet for this question.

Full CAS-005 Practice