[java-identity-provider COMMIT] /trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/saml1/AddAuth...
noreply at shibboleth.net
noreply at shibboleth.net
Thu Jan 9 20:59:19 EST 2014
Author: scantor
Date: Thu Jan 9 20:59:18 2014
New Revision: 5173
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=5173&view=rev
Log:
Add error checking for valid profile config.
Modified:
trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/saml1/AddAuthenticationStatementToAssertion.java
Modified: trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/saml1/AddAuthenticationStatementToAssertion.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/saml1/AddAuthenticationStatementToAssertion.java?rev=5173&r1=5172&r2=5173&view=diff
==============================================================================
--- trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/saml1/AddAuthenticationStatementToAssertion.java (original)
+++ trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/saml1/AddAuthenticationStatementToAssertion.java Thu Jan 9 20:59:18 2014
@@ -73,6 +73,7 @@
* @event {@link EventIds#PROCEED_EVENT_ID}
* @event {@link EventIds#INVALID_MSG_CTX}
* @event {@link IdPEventIds#INVALID_RELYING_PARTY_CTX}
+ * @event {@link IdPEventIds#INVALID_PROFILE_CONFIG}
* @event {@link AuthnEventIds#INVALID_AUTHN_CTX}
*/
public class AddAuthenticationStatementToAssertion extends AbstractAuthenticationAction<Object, Response> {
@@ -181,6 +182,11 @@
log.debug("{} No relying party context located in current profile request context", getLogPrefix());
ActionSupport.buildEvent(profileRequestContext, IdPEventIds.INVALID_RELYING_PARTY_CTX);
return false;
+ } else if (relyingPartyCtx.getProfileConfig() == null
+ || relyingPartyCtx.getProfileConfig().getSecurityConfiguration() == null) {
+ log.debug("{} No profile configuration located in relying party context", getLogPrefix());
+ ActionSupport.buildEvent(profileRequestContext, IdPEventIds.INVALID_PROFILE_CONFIG);
+ return false;
}
authenticationResult = authenticationContext.getAuthenticationResult();
More information about the commits
mailing list