>
>
> I just wanted to let you know Traun, I was able to get Persona on Android
working. I used a webview as indicated in other posts here. I did and http
post to the _persona endpoint on couchbase using the assertion I got in the
web view from hitting the mozilla login.persona url. I got the cookies from
that call and stored them with CookieManager. I updated my Replications by
adding the cookie as a header replication.addHeader:
CookieManager.getInstance().setCookie(syncUrl, cookie);
CookieManager.getInstance().getCookie(syncUrl, cookie);
pullReplication.getHeaders().put("Cookie", cookie);
pullReplication.setAuthorizer(authorizer);
I used a new Authorizer that returns true for useCookieBasedLogin
class PAuthorizer extends Authorizer {
@Override
public boolean usesCookieBasedLogin() {
return true;
}
}
This looked like what you had except the method where you update the
replication (I believe it was synchronizeWithPersonaAssertion) you were
attempting to append a Query string with PersonaAuthorizer.QUERY_PARAMETER,
and value assertion. This didn't seen to to anything. Instead you must
addHeader to replication and add the cookie as described above.
Note: Persona won't currently work for emails for yahoo or google since the
code I used in the WebView does not correctly handle redirect to different
IDPs.
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/5ce3b615-f1a4-4da7-9314-4be86fb5a756%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.