[java-identity-provider COMMIT] /trunk/idp-session-impl/src/main/java/net/shibboleth/idp/session/impl/ExtractActiveAu...
noreply at shibboleth.net
noreply at shibboleth.net
Tue Mar 29 13:49:47 EDT 2016
Author: scantor
Date: Tue Mar 29 13:49:47 2016
New Revision: 8186
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=8186&view=rev
Log:
Set hintedName in AuthenticationContext based on session.
Modified:
trunk/idp-session-impl/src/main/java/net/shibboleth/idp/session/impl/ExtractActiveAuthenticationResults.java
Modified: trunk/idp-session-impl/src/main/java/net/shibboleth/idp/session/impl/ExtractActiveAuthenticationResults.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-session-impl/src/main/java/net/shibboleth/idp/session/impl/ExtractActiveAuthenticationResults.java?rev=8186&r1=8185&r2=8186&view=diff
==============================================================================
--- trunk/idp-session-impl/src/main/java/net/shibboleth/idp/session/impl/ExtractActiveAuthenticationResults.java (original)
+++ trunk/idp-session-impl/src/main/java/net/shibboleth/idp/session/impl/ExtractActiveAuthenticationResults.java Tue Mar 29 13:49:47 2016
@@ -44,9 +44,12 @@
* {@link AuthenticationResult} objects found in a {@link SessionContext} that is a direct
* child of the {@link ProfileRequestContext}.
*
+ * <p>If {@link AuthenticationContext#getHintedName() is null, then it is populated with the
+ * principal name from the session.</p>
+ *
* @event {@link org.opensaml.profile.action.EventIds#PROCEED_EVENT_ID}
* @pre <pre>ProfileRequestContext.getSubcontext(AuthenticationContext.class, false) != null</pre>
- * @post AuthenticationContext.getActiveResults() is modified as above.
+ * @post AuthenticationContext is modified as above.
*/
public class ExtractActiveAuthenticationResults extends AbstractAuthenticationAction {
@@ -98,6 +101,10 @@
protected void doExecute(@Nonnull final ProfileRequestContext profileRequestContext,
@Nonnull final AuthenticationContext authenticationContext) {
+ if (authenticationContext.getHintedName() == null) {
+ authenticationContext.setHintedName(session.getPrincipalName());
+ }
+
final List<AuthenticationResult> actives = new ArrayList<>();
for (AuthenticationResult result : session.getAuthenticationResults()) {
AuthenticationFlowDescriptor descriptor =
More information about the commits
mailing list