Clients log in by sending a POST request to /dbname/_persona. The request body is a JSON document that contains an assertion property whose value is the signed assertion received from the identity provider. Just as with a _session login, the response sets a session cookie.
How does one get the session cookie that is set after accessing the _persona url?
I am trying to understand this so I can allow the user to skip the persona login if their session is still valid.
The result I get back from the urlConnection using _persona is below but I'm not sure if that helps.
{
"authentication_handlers": [
"default",
"cookie",
"persona"
],
"ok": true,
"userCtx": {
"channels": {},
"name": "er...@consultant.com"
}
}