[jboss-jira] [JBoss JIRA] (ELY-1373) IBM JDK, SPNEGO + FORM; with invalid ticket 200 status code is returned

Jan Kalina (JIRA) issues at jboss.org
Mon Sep 25 06:52:00 EDT 2017


    [ https://issues.jboss.org/browse/ELY-1373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467815#comment-13467815 ] 

Jan Kalina commented on ELY-1373:
---------------------------------

[~dlofthouse] by javadoc, isEstablished returns true if "no more tokens are needed from the peer" (and negotiating loop should be terminated)

Oracle says true = loop should be terminated, we dont suppose more input from client (but srcName obtaining will fail)
IBM says false = loop should continue, we suppose client will continue by trying another ticket maybe?

I think booth JDKs behaviors can be correct and are OK for us.

When reconsidering, the status code 200 is correct for SPNEGO+FORM when invalid token is send and it is not possible to use continuation as NONE scope is used.
The status code 401 would be used only when it would be without FORM fallback and it would be send without authenticate response, as continuation is not possible with NONE scope.

Elytron behavior is correct - closing.

> IBM JDK, SPNEGO + FORM; with invalid ticket 200 status code is returned
> -----------------------------------------------------------------------
>
>                 Key: ELY-1373
>                 URL: https://issues.jboss.org/browse/ELY-1373
>             Project: WildFly Elytron
>          Issue Type: Bug
>          Components: Authentication Mechanisms
>    Affects Versions: 1.2.0.Beta3
>            Reporter: Jan Kalina
>            Assignee: Jan Kalina
>
> Given SPNEGO + FORM authentication configuration. And running on IBM java.
> When invalid kerberos ticket is send 
> Then status code 200 is returned with http form. 
> While on Oracle JDK {{gssContext.isEstablished()}} returns true for invalid client ticket (negotiate with wrong domain JBOSS.COM), so SPNEGO mechanism sends bare challenge after failed authorization, on IBM JDK it returns false immediately, so mechanism fail without sending challenge - to be consistent should be send in both cases.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list