Changes in Release 2.2.0
=============================================
+[SIDP-409] - Pass IdP w/o authenticating
[SIDP-407] - Shibboleth SSO profile handler sets incorrect protocol string in outbound message context
[SIDP-402] - Update 3rd party libraries for 2.2 release
[SIDP-397] - Remove any unit test that won't be fixed in the 2.X branch, fix the rest
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<charset>UTF-8</charset>
- <!-- General logging pattern -->
<Pattern>%date{HH:mm:ss.SSS} - %level [%logger:%line] - %msg%n</Pattern>
-
- <!--
- Two MDC variables are available for authenticated users: 'idpSessionID' and 'principalName'.
- You may include these the data in the logging pattern by means of %mdc{NAME}
- You may include the thread ID by means of %t
- -->
- <!-- Example logging pattern using thread ID and principal name -->
- <!--
- <Pattern>%date{HH:mm:ss.SSS} - %level [%logger:%line] - [%t:%mdc{principalName}] - %msg%n</Pattern>
- -->
-
</encoder>
</appender>
if (loginContext == null) {
log.debug("Incoming request does not contain a login context, processing as first leg of request");
performAuthentication(inTransport, outTransport);
+ }else if(!loginContext.isPrincipalAuthenticated()){
+ log.debug("Incoming request contained a login context but principal was not authenticated, processing as first leg of request");
+ performAuthentication(inTransport, outTransport);
} else {
log.debug("Incoming request contains a login context, processing as second leg of request");
HttpServletHelper.unbindLoginContext(getStorageService(), servletContext, httpRequest, httpResponse);
if (loginContext == null) {
log.debug("Incoming request does not contain a login context, processing as first leg of request");
performAuthentication(inTransport, outTransport);
+ }else if(!loginContext.isPrincipalAuthenticated()){
+ log.debug("Incoming request contained a login context but principal was not authenticated, processing as first leg of request");
+ performAuthentication(inTransport, outTransport);
} else {
log.debug("Incoming request contains a login context, processing as second leg of request");
HttpServletHelper.unbindLoginContext(getStorageService(), servletContext, httpRequest, httpResponse);