core.security.identity_policy ============================= .. py:module:: core.security.identity_policy Classes ------- .. autoapisummary:: core.security.identity_policy.IdentityPolicy Functions --------- .. autoapisummary:: core.security.identity_policy.identity_policy core.security.identity_policy.verify_identity core.security.identity_policy.forget core.security.identity_policy.remembered Module Contents --------------- .. py:class:: IdentityPolicy Stores the tokens associated with the identity on the browser session .. py:attribute:: required_keys .. py:method:: identify(request: core.request.CoreRequest) -> morepath.Identity | None .. py:method:: remember(response: morepath.Response, request: core.request.CoreRequest, identity: morepath.Identity) -> None .. py:method:: forget(response: morepath.Response, request: core.request.CoreRequest) -> None .. py:function:: identity_policy() -> IdentityPolicy .. py:function:: verify_identity(identity: morepath.Identity) -> bool .. py:function:: forget(app: onegov.core.framework.Framework, session_id: str) -> None Clears the tokens associated with the identity from given browser session. .. py:function:: remembered(app: onegov.core.framework.Framework, session_id: str) -> bool Checks if tokens associated with the identity are stored for the given browser session.