core.security.identity_policy

Classes

IdentityPolicy

Stores the tokens associated with the identity on the browser session

Functions

identity_policy(→ IdentityPolicy)

verify_identity(→ bool)

forget(→ None)

Clears the tokens associated with the identity from given browser

remembered(→ bool)

Checks if tokens associated with the identity are stored for the given

Module Contents

class core.security.identity_policy.IdentityPolicy[source]

Stores the tokens associated with the identity on the browser session

required_keys[source]
identify(request: core.request.CoreRequest) morepath.Identity | None[source]
remember(response: morepath.Response, request: core.request.CoreRequest, identity: morepath.Identity) None[source]
forget(response: morepath.Response, request: core.request.CoreRequest) None[source]
core.security.identity_policy.identity_policy() IdentityPolicy[source]
core.security.identity_policy.verify_identity(identity: morepath.Identity) bool[source]
core.security.identity_policy.forget(app: onegov.core.framework.Framework, session_id: str) None[source]

Clears the tokens associated with the identity from given browser session.

core.security.identity_policy.remembered(app: onegov.core.framework.Framework, session_id: str) bool[source]

Checks if tokens associated with the identity are stored for the given browser session.