⟵ hearthere ⟶
  • Quick start
  • Install MIT
  • Install PRO
  • Updating
  • Optimization
  • Update v4-v6
  • Backups
  • Console utility bin/totum
  • Basics for users
  • Interface and Layout
  • Tables and their parameters
  • Prefilter
  • Fields and their parameters
  • Syntax
  • Code, actions, formatting
  • Relational relationships
  • Calculation order and calculation units
  • Auto-complete calculations and timing
  • Duplicate rows and cycles
  • Comparisons
  • Functions
  • Debugging
  • Print and CSV
  • API
  • Roles and users
  • Notifications
  • Scheduled Actions
  • System tables
  • Trees
  • Anonymous tables
  • External Forms
  • Exporting and importing tables
  • [PRO] MeiliSearch
  • [PRO] Databases
  • [PRO] Custom CSS
  • [PRO] Custom docs
  • [PRO] LDAP AD
  • [PRO] File versions
  • [PRO] List-unsubscribe
  • [PRO] Dynamic fields
  • [PRO] Only Office
  • [PRO] Auth Tokens
  • Link Generation
  • Usage
  • Token Generation for Transition from Another Application
  • [PRO] 2FA
  • [PRO] Superlang
  • [PRO] Daemons
  • [PRO] Profiler
  • Connecting functions
  • [SRV] Installation and Connection
  • [SRV] Export, PDF, Upload, and Preview
  • [SRV] XLSX/DOCX Generators
  • PRO Auth Tokens

    Authorization links allow for one-time or multiple authorizations of a user in the system. The link is encrypted symmetrically using the key in Krypto.key at the root of the installation.

    Link Generation

    The link is generated by the function proGetAuthorizationLink.

    The function creates an entry in the table System Tables —> PRO —> Auth tokens —> Auth tokens

    And returns the formed URL for transition!

    tokens

    Usage

    Navigating to a url of the form HOST/Auth/Token/TOKEN will lead to the authorization of the user linked to the token.

    The use of the token is noted in the last_used_at field.

    If the token is one-time, it will be marked as disabled at the moment of authorization, and further use will be impossible.

    If you delete the token and the table ttm__auth_tokens — authorization with it will be impossible.

    Token Generation for Transition from Another Application

    If you need to link two applications and ensure a seamless transition from one to the other, you can create remotes, which will return a token for the required user.