[java-identity-provider COMMIT] in /trunk: idp-profile-api/pom.xml idp-profile-api/src/main/java/net/shibboleth/idp/p...
noreply at shibboleth.net
noreply at shibboleth.net
Sun Aug 28 15:27:06 BST 2011
Author: lajoie
Date: Sun Aug 28 15:27:05 2011
New Revision: 4037
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=4037&view=rev
Log:
Add message decoding action and factory supporting its use for IdP initiated SSO requests
Added:
trunk/idp-profile-api/src/main/java/net/shibboleth/idp/profile/DecodeMessage.java (with props)
trunk/idp-profile-api/src/main/java/net/shibboleth/idp/profile/HttpServletRequestMessageDecoderFactory.java (with props)
trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/IdpInitiatedSsoRequestMessageDecoderFactory.java (with props)
Modified:
trunk/idp-profile-api/pom.xml
trunk/idp-profile-api/src/main/java/net/shibboleth/idp/profile/AbstractIdentityProviderAction.java
trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/IdpInitatedSsoRequest.java
trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/IdpInitiatedSsoRequestMessageDecoder.java
Modified: trunk/idp-profile-api/pom.xml
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-profile-api/pom.xml?rev=4037&r1=4036&r2=4037&view=diff
==============================================================================
--- trunk/idp-profile-api/pom.xml (original)
+++ trunk/idp-profile-api/pom.xml Sun Aug 28 15:27:05 2011
@@ -33,6 +33,11 @@
<version>${project.version}</version>
</dependency>
<dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>idp-metadata-api</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
<groupId>org.springframework.webflow</groupId>
<artifactId>spring-webflow</artifactId>
</dependency>
Modified: trunk/idp-profile-api/src/main/java/net/shibboleth/idp/profile/AbstractIdentityProviderAction.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-profile-api/src/main/java/net/shibboleth/idp/profile/AbstractIdentityProviderAction.java?rev=4037&r1=4036&r2=4037&view=diff
==============================================================================
--- trunk/idp-profile-api/src/main/java/net/shibboleth/idp/profile/AbstractIdentityProviderAction.java (original)
+++ trunk/idp-profile-api/src/main/java/net/shibboleth/idp/profile/AbstractIdentityProviderAction.java Sun Aug 28 15:27:05 2011
@@ -80,7 +80,7 @@
}
if (ActionSupport.ERROR_EVENT_ID.equals(result.getId())) {
- log.debug("Action {} failed with erro message {}", getId(),
+ log.debug("Action {}: failed with error message {}", getId(),
result.getAttributes().get(ActionSupport.ERROR_MESSAGE_ID));
}
@@ -105,4 +105,5 @@
public abstract Event doExecute(final RequestContext springRequestContext,
final ProfileRequestContext<InboundMessageType, OutboundMessageType> profileRequestContext)
throws Throwable;
+
}
Modified: trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/IdpInitatedSsoRequest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/IdpInitatedSsoRequest.java?rev=4037&r1=4036&r2=4037&view=diff
==============================================================================
--- trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/IdpInitatedSsoRequest.java (original)
+++ trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/IdpInitatedSsoRequest.java Sun Aug 28 15:27:05 2011
@@ -17,13 +17,11 @@
package net.shibboleth.idp.saml.impl.profile;
-import java.io.Serializable;
+import net.jcip.annotations.ThreadSafe;
import org.opensaml.util.Assert;
import org.opensaml.util.ObjectSupport;
import org.opensaml.util.StringSupport;
-
-import net.jcip.annotations.ThreadSafe;
/**
* Object representing a Shibboleth Authentication Request message.
@@ -35,10 +33,7 @@
* should be used by SAML 2 service providers wishing to initiate authentication.
*/
@ThreadSafe
-public class IdpInitatedSsoRequest implements Serializable {
-
- /** Serial version UID. */
- private static final long serialVersionUID = 1282333199225082502L;
+public class IdpInitatedSsoRequest {
/** The entity ID of the requesting service provider. */
private final String entityId;
@@ -50,7 +45,7 @@
private final String acsUrl;
/** An opaque value to be returned to the service provider with the authentication response. */
- private final String target;
+ private final String relayState;
/** The current time, at the service provider, in milliseconds since the epoch. */
private final long time;
@@ -72,18 +67,18 @@
acsUrl = StringSupport.trimOrNull(newAcsUrl);
- target = StringSupport.trimOrNull(newTarget);
+ relayState = StringSupport.trimOrNull(newTarget);
time = newTime;
Assert.isGreaterThanOrEqual(0, time, "Time must be greater than or equal to 0");
}
/**
[... 177 lines stripped ...]
More information about the commits
mailing list