microscopic-answer-24504
05/13/2022, 8:26 AMthankful-dog-96817
05/13/2022, 8:32 AMthankful-dog-96817
05/13/2022, 8:49 AMhigh-optician-2097
high-optician-2097
high-optician-2097
<http://example.org|example.org>
, and you will need to set up some CORS rules, in that case probably allow CORS traffic from <http://app.example.org|app.example.org>
and <http://api.example.org|api.example.org>
high-optician-2097
high-optician-2097
thankful-dog-96817
05/13/2022, 9:28 AMhigh-optician-2097
toSession
in the SDK (Java / React) or make a REST request to /sessions/whoami
. Make sure to include all the HTTP headers the client sends you when you do this server-side, the API needs in particular the Cookie
header from the client to know what session the user has.
You don’t need to worry about any tokens, we do everything automatically for you 🙂high-optician-2097
high-optician-2097
high-optician-2097
thankful-dog-96817
05/13/2022, 12:13 PMhigh-optician-2097
thankful-dog-96817
05/13/2022, 12:33 PMthankful-dog-96817
05/13/2022, 12:33 PMthankful-dog-96817
05/13/2022, 12:34 PMhigh-optician-2097
thankful-dog-96817
05/13/2022, 12:36 PMthankful-dog-96817
05/13/2022, 1:59 PMsub
claim out of the cookie or would I need to call /sessions/whoami
on every request to validate & get traits/metadata?high-optician-2097
/sessions/whoami
. there’s a couple of strategies one can use to reduce the calls, we still need to develop some libraries for it thoughhigh-optician-2097
thankful-dog-96817
05/13/2022, 2:03 PMthankful-dog-96817
05/13/2022, 2:04 PM