How to know if user is currently logged in

You can create the iframe src parameter with the current user, like

<iframe src="https://myembedsite.com/page?user=auser" ....

and you can read the user from the url.

A better solution is to use the plone site as the auth provider for the iframe site, using `plone.session': plone.session/plone/session/tktauth.py at master · plone/plone.session · GitHub

See Also:

1 Like