<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hello,
<div class=""><br class="">
</div>
<div class="">I’ve configured Duo with MFA in IDP 3.3.1. Our primary authentication uses authn/RemoteUser. After successful primary authentication, I got error when Duo was triggered. Here is the error in the log:</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">2017-03-22 13:38:00,793| - DEBUG [net.shibboleth.idp.authn.impl.TransitionMultiFactorAuthentication:221] - Profile Action TransitionMultiFactorAuthentication: MFA flow transition after
 'proceed' event to 'authn/Duo' flow</div>
</div>
<div class="">
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">2017-03-22 13:38:00,858| - ERROR [org.springframework.webflow.execution.ActionExecutionException:76] - </div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@5f08ea43 targetAction = [EvaluateAction@11e43d0f expression = T(com.duosecurity.integrations.DuoShibboleth).instance(environment.getProperty('duo.ikey',
 ''), environment.getProperty('duo.skey', ''), environment.getProperty('duo.akey', ''), environment.getProperty('duo.host', ''), usernamePasswordContext.getUsername()), resultExpression = flowScope.duo], attributes = map[[empty]]] in state 'null' of flow 'authn/Duo'
 -- action execution attributes were 'map[[empty]]'</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:60)</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Caused by: org.springframework.binding.expression.EvaluationException: An ELException occurred getting the value for expression 'T(com.duosecurity.integrations.DuoShibboleth).instance(environment.getProperty('duo.ikey',
 ''), environment.getProperty('duo.skey', ''), environment.getProperty('duo.akey', ''), environment.getProperty('duo.host', ''), usernamePasswordContext.getUsername())' on context [class org.springframework.webflow.engine.impl.RequestControlContextImpl]</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.springframework.binding.expression.spel.SpringELExpression.getValue(SpringELExpression.java:92)</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1011E:(pos 46): Method call: Attempted to call method getUsername() on null context object</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.springframework.expression.spel.ast.MethodReference.throwIfNotNullSafe(MethodReference.java:144)</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Any idea what is wrong in my configuration? Thanks!</div>
<div class=""><br class="">
</div>
<div apple-content-edited="true" class="">
<div class="">
<div style="orphans: 2; widows: 2;" class="">Hong </div>
</div>
</div>
<br class="">
</div>
</body>
</html>