:tocdepth: 3 :py:mod:`gws.base.auth.session` =============================== .. py:module:: gws.base.auth.session **Source code:** :source:`gws.base.auth.session` Module Contents --------------- .. py:class:: Object(uid: str, user: gws.User, method: Optional[gws.AuthMethod], data: dict = None, created: datetime.datetime = None, updated: datetime.datetime = None, is_changed=True) Bases: :py:obj:`gws.AuthSession` Authentication session. .. py:attribute:: created Session create time. .. py:attribute:: data Session data. .. py:attribute:: isChanged :value: True Session has changed since the last update.. .. py:attribute:: method Authentication method that created the session. .. py:attribute:: uid Session uid. .. py:attribute:: updated Session update time. .. py:attribute:: user Authorized User. .. py:method:: get(key, default=None) Get a session data value. :param key: Value name. :param default: Default value. :returns: A value or the default. .. py:method:: set(key, val) Set a session data value. :param key: Value name. :param value: A value.