This class is not documented.
- public function loadUserForSession($session_type, $session_token) — Load the user identity associated with a session of a given type,
identified by token.
No methods for this task.
- public function requireHighSecuritySession($viewer, $request, $cancel_uri, $jump_into_hisec) — Require high security, or prompt the user to enter high security.
- private function issueHighSecurityToken($session, $force) — Issue a high security token for a session, if authorized.
- public function renderHighSecurityForm($factors, $validation_results, $viewer, $request) — Render a form for providing relevant multi-factor credentials.
- public function exitHighSecurity($viewer, $session) — Strip the high security flag from a session.
- public function getOneTimeLoginURI($user, $email, $type) — Retrieve a temporary, one-time URI which can log in to an account.
- public function loadOneTimeLoginKey($user, $email, $key) — Load the temporary token associated with a given one-time login key.
- public static function getSessionKindFromToken($session_token) — Get the session kind (e.g., anonymous, user, external account) from a
session token. Returns a `KIND_` constant.
- public function establishSession($session_type, $identity_phid, $partial) — Issue a new session key for a given identity. Phabricator supports
different types of sessions (like "web" and "conduit") and each session
type may have multiple concurrent sessions (this allows a user to be
logged in on multiple browsers at the same time, for instance).
- public function terminateLoginSessions($user, $except_session) — Terminate all of a user's login sessions.
- public function logoutSession($user, $session)
- private function getOneTimeLoginKeyHash($user, $email, $key) — Hash a one-time login key for storage as a temporary token.
| string | $session_token | Session token. |
| const | Session kind constant. |
| const | $session_type | The type of session to load. |
| string | $session_token | The session token. |
| const | $session_type | Session type constant (see @{class:PhabricatorAuthSession}). |
| phid|null | $identity_phid | Identity to establish a session for, usually a user PHID. With `null`, generates an anonymous session. |
| bool | $partial | True to issue a partial session. |
| string | Newly generated session key. |
| PhabricatorUser | $user | User whose sessions should be terminated. |
| string|null | $except_session | Optionally, one session to keep. Normally, the current login session. |
This method is not documented.
| PhabricatorUser | $user | |
| PhabricatorAuthSession | $session | |
| PhabricatorUser | $viewer | User whose session needs to be in high security. |
| AphrontReqeust | $request | Current request. |
| string | $cancel_uri | URI to return the user to if they cancel. |
| bool | $jump_into_hisec | True to jump partial sessions directly into high security instead of just upgrading them to full sessions. |
| PhabricatorAuthHighSecurityToken | Security token. |
| PhabricatorAuthSession | $session | Session to issue a token for. |
| bool | $force | Force token issue. |
| PhabricatorAuthHighSecurityToken|null | Token, if authorized. |
| PhabricatorUser | $factors | Viewing user. |
| AphrontRequest | $validation_results | Current request. |
| PhabricatorUser | $viewer | |
| AphrontRequest | $request | |
| AphrontFormView | Renderable form. |
| PhabricatorUser | $viewer | Acting user. |
| PhabricatorAuthSession | $session | Session to return to normal security. |
| PhabricatorAuthSession | $viewer | Session to upgrade. |
| PhabricatorUser | $viewer | User whose session should upgrade. |
| array | $docs | LegalpadDocument objects |
| PhabricatorUser | $user | User to generate a URI for. |
| PhabricatorUserEmail | $email | Optionally, email to verify when link is used. |
| string | $type | Optional context string for the URI. This is purely cosmetic and used only to customize workflow and error messages. |
| PhabricatorUser | $user | User to load the token for. |
| PhabricatorUserEmail | $email | Optionally, email to verify when link is used. |
| string | $key | Key user is presenting as a valid one-time login key. |
| PhabricatorAuthTemporaryToken|null | Token, if one exists. |
| PhabricatorUser | $user | User this key is for. |
| PhabricatorUserEmail | $email | Optionally, email to verify when link is used. |
| string | $key | The one time login key. |
| string | Hash of the key. task onetime |
Copyright © LEAD Solutions B.V.