-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Currently the headers are needed on every page. When the headers are gone, you are no longer logged in. It would be useful if you stay logged in. Then a frontend server (nginx, Apache) only needs to check for example SAML or CAS only for one, or a few, pages.
- We can set an
__ac
cookie by callingself._getPAS().updateCredentials
. - That will call
updateCredentials
fromplone.session
. - For that call to work, a user must be found. That can only work when our plugin supports
enumerateUsers
, although possibly a user with the same id can be found from LDAP or elsewhere.
So:
- Implement enumerateUsers (this will either return one user or none, depending on the headers).
- Call
updateCredentials
. I think we would call this fromauthenticateCredentials
.
Ah, or we would just call _setupSession
from plone.session directly.
Metadata
Metadata
Assignees
Labels
No labels