Reduced number of signatures to one instead of possible 3 per session. webid
authorHenry Story <henry.story@bblfish.net>
Tue, 20 Dec 2011 20:02:18 +0100
branchwebid
changeset 156 e74fb80c6edc
parent 155 021d9a149656
child 157 33f2505485b6
Reduced number of signatures to one instead of possible 3 per session.
src/main/scala/auth/WebIDSrvc.scala
--- a/src/main/scala/auth/WebIDSrvc.scala	Tue Dec 20 18:59:11 2011 +0100
+++ b/src/main/scala/auth/WebIDSrvc.scala	Tue Dec 20 20:02:18 2011 +0100
@@ -88,10 +88,10 @@
       else req match {
         case Params(RelyingParty(rp)) => req match {
           case Params(DoIt(_)) & XClaim(claim: XClaim) => {
-            val answer = if (claim == NoClaim) "error=nocert"
-            else if (claim.claims.size == 0) "error=noWebID"
-            else if (claim.verified.size == 0) "error=noVerifiedWebID" +
-              claim.claims.map(claim => claim.verify.failMap(e => e.getMessage)).mkString("&cause=")
+            val answer = if (claim == NoClaim) "error=nocert&"
+            else if (claim.claims.size == 0) "error=noWebID&"
+            else if (claim.verified.size == 0) "error=noVerifiedWebID&" +
+              claim.claims.map(claim => claim.verify.failMap(e => "cause="+e.getMessage)).mkString("&")+"&"
             else claim.verified.slice(0, 3).foldRight("") {
               (wid, str) => "webid=" + URLEncoder.encode(wid.url.toExternalForm, "UTF-8") + "&"
             }