Closed GoogleCodeExporter closed 8 years ago
diff --git a/src/org/openid4java/discovery/DiscoveryInformation.java
b/src/org/openid4java/discovery/DiscoveryInformation.java
index f79fbc9..dfda6b0 100644
--- a/src/org/openid4java/discovery/DiscoveryInformation.java
+++ b/src/org/openid4java/discovery/DiscoveryInformation.java
@@ -4,6 +4,8 @@
package org.openid4java.discovery;
+import org.openid4java.message.AuthRequest;
+
import java.net.URL;
import java.io.Serializable;
import java.util.Set;
@@ -101,7 +103,7 @@ public class DiscoveryInformation implements Serializable
if (_opEndpoint == null)
throw new DiscoveryException("Null OpenID Provider endpoint.");
- if (_delegate != null && _claimedIdentifier == null)
+ if (_delegate != null && ! AuthRequest.SELECT_ID.equals(_delegate) &&
_claimedIdentifier == null)
throw new DiscoveryException("Claimed ID must be present " +
"if delegated ID is used.");
}
Original comment by andrefcruz
on 23 Feb 2009 at 10:37
Re-reading the discovery section of the spec reveals that there is no
requirement
for the delegate ID to be absent under any circumstances -- just that a special
value is used when an OP identifier is discovered.
Updated accordingly, fixed in rev565.
Original comment by Johnny.B...@gmail.com
on 26 Feb 2009 at 8:16
Original issue reported on code.google.com by
andrefcruz
on 20 Feb 2009 at 6:31