Hide Forgot
Description of problem: When the client sends an initial SPNEGO token with Kerberos as preferred mechanism and includes an invalid kerberos token, then client expects to see the WWW-Authenticate HTTP header with SPNEGO response negTokenResp[ negState = reject ]. As stated in SPNEGO specification [1] negstat is required in first reply: negState ... This field is REQUIRED in the first reply from the target, and is OPTIONAL thereafter. When negState is absent, the actual state should be inferred from the state of the negotiated mechanism context. [1] https://tools.ietf.org/html/rfc4178#section-4.2.2 How reproducible: testInvalidKerberosSpnegoWorkflow in https://github.com/jbossas/jboss-eap7/pull/457/commits/661c2c6c8a1b91feab54f3394c03e7a54818ed18 Additional info: This is effectivelly clone of EAP7 issue https://issues.jboss.org/browse/JBEAP-4114 created for reference in EAP6.