[JIRA] Resolved: (SIDP-549) Incorrect handling of returned authn error in SSO profile handlers

Scott Cantor (JIRA) noreply at shibboleth.net
Tue Jun 5 22:45:03 BST 2012


     [ https://issues.shibboleth.net/jira/browse/SIDP-549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Cantor resolved SIDP-549.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.7

Fixed in rev. 3107. Regression was triggered when the unbind call was added in one of the cases.

> Incorrect handling of returned authn error in SSO profile handlers
> ------------------------------------------------------------------
>
>                 Key: SIDP-549
>                 URL: https://issues.shibboleth.net/jira/browse/SIDP-549
>             Project: Shibboleth IdP 2 - Java
>          Issue Type: Bug
>          Components: SAML 2
>    Affects Versions: 2.3.6
>            Reporter: marian.cvecka at idp.protectnetwork.org
>            Assignee: Chad La Joie
>             Fix For: 2.3.7
>
>
> It appears that this issue https://issues.shibboleth.net/jira/browse/SIDP-427 has been reintroduced in the version 2.3.6. This time there is the following code in the processRequest method:
> {code}
>             if(!(loginContext instanceof Saml2LoginContext)){
>                 log.debug("Incoming request contained a login context but it was not a Saml2LoginContext, processing as first leg of request");
>                 performAuthentication(inTransport, outTransport);
>                 return;
>             }
>             
>             if(!loginContext.isPrincipalAuthenticated()){
>                 log.debug("Incoming request contains a login context but principal was not authenticated, processing first leg of request");
>                 performAuthentication(inTransport, outTransport);
>                 return;
>             }
>             
>             if(loginContext.isPrincipalAuthenticated()){
>                 log.debug("Incoming request contains a login context and indicates principal was authenticated, processing second leg of request");
>                 completeAuthenticationRequest((Saml2LoginContext)loginContext, inTransport, outTransport);
>                 return;
>             }
>             
>             if(loginContext.getAuthenticationFailure() != null){
>                 log.debug("Incoming request contains a login context and indicates there was an error authenticating the principal, processing second leg of request");
>                 completeAuthenticationRequest((Saml2LoginContext)loginContext, inTransport, outTransport);
>                 return;
>             }
> {code}
> The code execution has no chance to reach the last if statement.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the commits mailing list