auth

Main authentication module for my projects
git clone git://git.finwo.net/app/auth
Log | Files | Refs

admin-user-global-detail.html (33287B)


      1 <!doctype html>
      2 <html lang="en">
      3   <head>
      4     <meta charset="utf-8" />
      5     <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
      6     <title>Admin global user detail mockup</title>
      7     <link rel="stylesheet" href="../../app/shared/style/global.css" />
      8     <link rel="stylesheet" href="../../app/shared/component/user-menu.css" />
      9     <link rel="stylesheet" href="./mockups.css" />
     10   </head>
     11   <body>
     12     <header class="topbar">
     13       <a class="brand" href="./admin-dashboard.html">
     14         <svg class="brand-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     15           <path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" />
     16         </svg>
     17         <span class="brand-name">Auth</span>
     18       </a>
     19       <div class="topbar-actions">
     20         <button class="mobile-nav-toggle" type="button" id="mobile-nav-toggle" aria-controls="mobile-navigation" aria-expanded="false" aria-label="Open navigation">
     21           <span class="mobile-nav-toggle-bars" aria-hidden="true"></span>
     22         </button>
     23         <details class="menu user-menu">
     24           <summary class="menu-trigger" aria-label="Account menu">
     25             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     26               <circle cx="12" cy="12" r="10" />
     27               <circle cx="12" cy="10" r="3" />
     28               <path d="M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662" />
     29             </svg>
     30           </summary>
     31           <div class="menu-panel">
     32             <div class="menu-heading">
     33               <span class="menu-heading-title">System Admin</span>
     34               <span class="menu-heading-meta">admin@system.test</span>
     35             </div>
     36             <div class="menu-list">
     37               <a class="menu-item" href="#">
     38                 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     39                   <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" />
     40                   <circle cx="12" cy="12" r="3" />
     41                 </svg>
     42                 <span>Account settings</span>
     43               </a>
     44               <button class="menu-item" type="button" data-user-theme>
     45                 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     46                   <circle cx="12" cy="12" r="4" />
     47                   <path d="M12 2v2" />
     48                   <path d="M12 20v2" />
     49                   <path d="m4.93 4.93 1.41 1.41" />
     50                   <path d="m17.66 17.66 1.41 1.41" />
     51                   <path d="M2 12h2" />
     52                   <path d="M20 12h2" />
     53                   <path d="m6.34 17.66-1.41 1.41" />
     54                   <path d="m19.07 4.93-1.41 1.41" />
     55                 </svg>
     56                 <span>Theme</span>
     57                 <span class="menu-value" data-user-theme-value>Auto</span>
     58               </button>
     59               <a class="menu-item" href="#">
     60                 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     61                   <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
     62                   <path d="m16 17 5-5-5-5" />
     63                   <path d="M21 12H9" />
     64                 </svg>
     65                 <span>Sign out</span>
     66               </a>
     67             </div>
     68           </div>
     69         </details>
     70       </div>
     71     </header>
     72 
     73     <div class="mobile-nav" id="mobile-navigation" aria-hidden="true">
     74       <nav class="nav" aria-label="Administration">
     75         <p class="nav-label">Administration</p>
     76         <a class="nav-item" href="./admin-dashboard.html">
     77           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     78             <rect x="3" y="3" width="7" height="7" />
     79             <rect x="14" y="3" width="7" height="7" />
     80             <rect x="3" y="14" width="7" height="7" />
     81             <rect x="14" y="14" width="7" height="7" />
     82           </svg>
     83           <span>Overview</span>
     84         </a>
     85         <a class="nav-item" href="./admin-realms.html">
     86           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     87             <path d="M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" />
     88             <path d="M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" />
     89             <path d="M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" />
     90             <path d="M10 6h4" />
     91             <path d="M10 10h4" />
     92             <path d="M10 14h4" />
     93             <path d="M10 18h4" />
     94           </svg>
     95             <span>Realms</span>
     96         </a>
     97         <a class="nav-item" href="./admin-clients.html">
     98           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     99             <rect x="2" y="4" width="20" height="16" rx="2" />
    100             <path d="M10 4v4" />
    101             <path d="M2 8h20" />
    102             <path d="M6 4v4" />
    103           </svg>
    104           <span>Clients</span>
    105         </a>
    106         <a class="nav-item" href="#">
    107           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    108             <path d="M22 12h-4l-3 8-6-16-3 8H2" />
    109           </svg>
    110           <span>Sessions</span>
    111         </a>
    112         <a class="nav-item is-active" href="./admin-users.html" aria-current="page">
    113           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    114             <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" />
    115             <circle cx="12" cy="7" r="4" />
    116           </svg>
    117           <span>Users</span>
    118         </a>
    119         <a class="nav-item" href="./admin-system-settings.html">
    120           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    121             <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" />
    122             <circle cx="12" cy="12" r="3" />
    123           </svg>
    124           <span>Settings</span>
    125         </a>
    126       </nav>
    127       <div class="mobile-nav-divider" aria-hidden="true"></div>
    128       <section class="mobile-nav-account" aria-label="Account">
    129         <div class="menu-heading">
    130           <span class="menu-heading-title">System Admin</span>
    131           <span class="menu-heading-meta">admin@system.test</span>
    132         </div>
    133         <div class="menu-list">
    134           <a class="menu-item" href="#">
    135             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    136               <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" />
    137               <circle cx="12" cy="12" r="3" />
    138             </svg>
    139             <span>Account settings</span>
    140           </a>
    141           <button class="menu-item" type="button" data-user-theme>
    142             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    143               <circle cx="12" cy="12" r="4" />
    144               <path d="M12 2v2" />
    145               <path d="M12 20v2" />
    146               <path d="m4.93 4.93 1.41 1.41" />
    147               <path d="m17.66 17.66 1.41 1.41" />
    148               <path d="M2 12h2" />
    149               <path d="M20 12h2" />
    150               <path d="m6.34 17.66-1.41 1.41" />
    151               <path d="m19.07 4.93-1.41 1.41" />
    152             </svg>
    153             <span>Theme</span>
    154             <span class="menu-value" data-user-theme-value>Auto</span>
    155           </button>
    156           <a class="menu-item" href="#">
    157             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    158               <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
    159               <path d="m16 17 5-5-5-5" />
    160               <path d="M21 12H9" />
    161             </svg>
    162             <span>Sign out</span>
    163           </a>
    164         </div>
    165       </section>
    166     </div>
    167 
    168     <div class="app">
    169       <aside class="sidebar">
    170         <nav class="nav" aria-label="Administration">
    171           <p class="nav-label">Administration</p>
    172           <a class="nav-item" href="./admin-dashboard.html">
    173             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    174               <rect x="3" y="3" width="7" height="7" />
    175               <rect x="14" y="3" width="7" height="7" />
    176               <rect x="3" y="14" width="7" height="7" />
    177               <rect x="14" y="14" width="7" height="7" />
    178             </svg>
    179             <span>Overview</span>
    180           </a>
    181           <a class="nav-item" href="./admin-realms.html">
    182             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    183               <path d="M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" />
    184               <path d="M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" />
    185               <path d="M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" />
    186               <path d="M10 6h4" />
    187               <path d="M10 10h4" />
    188               <path d="M10 14h4" />
    189               <path d="M10 18h4" />
    190             </svg>
    191               <span>Realms</span>
    192           </a>
    193           <a class="nav-item" href="./admin-clients.html">
    194             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    195               <rect x="2" y="4" width="20" height="16" rx="2" />
    196               <path d="M10 4v4" />
    197               <path d="M2 8h20" />
    198               <path d="M6 4v4" />
    199             </svg>
    200             <span>Clients</span>
    201           </a>
    202           <a class="nav-item" href="#">
    203             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    204               <path d="M22 12h-4l-3 8-6-16-3 8H2" />
    205             </svg>
    206             <span>Sessions</span>
    207           </a>
    208           <a class="nav-item is-active" href="./admin-users.html" aria-current="page">
    209             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    210               <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" />
    211               <circle cx="12" cy="7" r="4" />
    212             </svg>
    213             <span>Users</span>
    214           </a>
    215           <a class="nav-item" href="./admin-system-settings.html">
    216             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    217               <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" />
    218               <circle cx="12" cy="12" r="3" />
    219             </svg>
    220             <span>Settings</span>
    221           </a>
    222         </nav>
    223       </aside>
    224 
    225       <div class="main">
    226         <main class="content">
    227           <div class="page-header page-header-row">
    228             <div>
    229               <div class="breadcrumb">
    230                 <a href="./admin-users.html">Users</a>
    231                 <span aria-hidden="true">/</span>
    232                 <span>Alice</span>
    233               </div>
    234               <h1>Alice</h1>
    235               <p>alice@acme.test</p>
    236             </div>
    237             <a class="button button-secondary" href="./admin-users.html">All realms</a>
    238           </div>
    239 
    240           <div class="stack">
    241             <div id="sessions-terminate-notice" class="notice" role="status" hidden></div>
    242             <section class="panel">
    243               <div class="section-header">
    244                 <h2>Account</h2>
    245               </div>
    246               <dl class="details">
    247                 <div>
    248                   <dt>Display name</dt>
    249                   <dd>Alice</dd>
    250                 </div>
    251                 <div>
    252                   <dt>Username</dt>
    253                   <dd>alice</dd>
    254                 </div>
    255                 <div>
    256                   <dt>Email</dt>
    257                   <dd>alice@acme.test</dd>
    258                 </div>
    259                 <div>
    260                   <dt>Home realm</dt>
    261                   <dd>acme</dd>
    262                 </div>
    263                 <div>
    264                   <dt>Status</dt>
    265                   <dd>Active</dd>
    266                 </div>
    267                 <div>
    268                   <dt>System admin</dt>
    269                   <dd>No</dd>
    270                 </div>
    271                 <div>
    272                   <dt>Last login</dt>
    273                   <dd>2026-10-25 10:14</dd>
    274                 </div>
    275                 <div>
    276                   <dt>Created</dt>
    277                   <dd>2026-10-20 09:00</dd>
    278                 </div>
    279               </dl>
    280             </section>
    281 
    282             <section class="card" aria-labelledby="sessions-table-title">
    283               <h2 id="sessions-table-title" class="sr-only">Sessions</h2>
    284               <div class="toolbar toolbar-panel">
    285                 <div class="toolbar-search">
    286                   <input id="session-search" type="search" aria-label="Search sessions" placeholder="Search sessions" />
    287                 </div>
    288                 <div class="toolbar-actions">
    289                   <button class="button button-danger" type="button" data-dialog-open="sessions-terminate-dialog">Terminate all sessions</button>
    290                 </div>
    291               </div>
    292               <table class="table table-linkable" id="user-sessions-table">
    293                 <thead>
    294                   <tr>
    295                     <th scope="col">Device</th>
    296                     <th scope="col">Last seen</th>
    297                     <th scope="col">Expires</th>
    298                   </tr>
    299                 </thead>
    300                 <tbody>
    301                   <tr data-row-dialog="session-detail-dialog" data-search="chrome macos identity.test global 198.51.100.23" data-session-device="Chrome on macOS" data-session-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" data-session-scope="Global session" data-session-host="identity.test" data-session-client="" data-session-ip="198.51.100.23" data-session-created="2026-10-25 08:12" data-session-lastseen="2026-10-25 10:14" data-session-expires="2026-11-01 10:14">
    302                     <td>
    303                       <span class="table-title">Chrome on macOS</span>
    304                       <span class="table-sub">identity.test</span>
    305                     </td>
    306                     <td data-label="Last seen">2026-10-25 10:14</td>
    307                     <td data-label="Expires">2026-11-01 10:14</td>
    308                   </tr>
    309                   <tr data-row-dialog="session-detail-dialog" data-search="safari iphone acme.test realm 198.51.100.61" data-session-device="Safari on iPhone" data-session-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 18_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Mobile/15E148 Safari/604.1" data-session-scope="Realm session" data-session-host="acme.test" data-session-client="" data-session-ip="198.51.100.61" data-session-created="2026-10-24 18:04" data-session-lastseen="2026-10-25 08:47" data-session-expires="2026-10-25 20:47">
    310                     <td>
    311                       <span class="table-title">Safari on iPhone</span>
    312                       <span class="table-sub">acme.test</span>
    313                     </td>
    314                     <td data-label="Last seen">2026-10-25 08:47</td>
    315                     <td data-label="Expires">2026-10-25 20:47</td>
    316                   </tr>
    317                   <tr data-row-dialog="session-detail-dialog" data-search="firefox windows internal.acme.test client internal app 10.0.4.12" data-session-device="Firefox on Windows" data-session-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0" data-session-scope="Client session" data-session-host="internal.acme.test" data-session-client="Internal App (internal-app)" data-session-ip="10.0.4.12" data-session-created="2026-10-24 08:15" data-session-lastseen="2026-10-24 16:02" data-session-expires="2026-10-25 04:02">
    318                     <td>
    319                       <span class="table-title">Firefox on Windows</span>
    320                       <span class="table-sub">internal.acme.test</span>
    321                     </td>
    322                     <td data-label="Last seen">2026-10-24 16:02</td>
    323                     <td data-label="Expires">2026-10-25 04:02</td>
    324                   </tr>
    325                   <tr data-row-dialog="session-detail-dialog" data-search="edge windows reports.globex.test client secure service 10.0.7.31" data-session-device="Edge on Windows" data-session-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0" data-session-scope="Client session" data-session-host="reports.globex.test" data-session-client="Secure Service (secure-app)" data-session-ip="10.0.7.31" data-session-created="2026-10-22 14:20" data-session-lastseen="2026-10-23 17:05" data-session-expires="2026-10-30 17:05">
    326                     <td>
    327                       <span class="table-title">Edge on Windows</span>
    328                       <span class="table-sub">reports.globex.test</span>
    329                     </td>
    330                     <td data-label="Last seen">2026-10-23 17:05</td>
    331                     <td data-label="Expires">2026-10-30 17:05</td>
    332                   </tr>
    333                   <tr data-row-dialog="session-detail-dialog" data-search="safari macos identity.test global 198.51.100.23" data-session-device="Safari on macOS" data-session-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15" data-session-scope="Global session" data-session-host="identity.test" data-session-client="" data-session-ip="198.51.100.23" data-session-created="2026-10-21 09:41" data-session-lastseen="2026-10-22 12:26" data-session-expires="2026-10-28 12:26">
    334                     <td>
    335                       <span class="table-title">Safari on macOS</span>
    336                       <span class="table-sub">identity.test</span>
    337                     </td>
    338                     <td data-label="Last seen">2026-10-22 12:26</td>
    339                     <td data-label="Expires">2026-10-28 12:26</td>
    340                   </tr>
    341                   <tr data-row-dialog="session-detail-dialog" data-search="chrome android globex.test realm 198.51.100.88" data-session-device="Chrome on Android" data-session-agent="Mozilla/5.0 (Linux; Android 15; Pixel 9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36" data-session-scope="Realm session" data-session-host="globex.test" data-session-client="" data-session-ip="198.51.100.88" data-session-created="2026-10-20 21:33" data-session-lastseen="2026-10-21 07:58" data-session-expires="2026-10-27 07:58">
    342                     <td>
    343                       <span class="table-title">Chrome on Android</span>
    344                       <span class="table-sub">globex.test</span>
    345                     </td>
    346                     <td data-label="Last seen">2026-10-21 07:58</td>
    347                     <td data-label="Expires">2026-10-27 07:58</td>
    348                   </tr>
    349                   <tr data-row-dialog="session-detail-dialog" data-search="firefox linux internal.acme.test client internal app 10.0.4.44" data-session-device="Firefox on Linux" data-session-agent="Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" data-session-scope="Client session" data-session-host="internal.acme.test" data-session-client="Internal App (internal-app)" data-session-ip="10.0.4.44" data-session-created="2026-10-19 10:02" data-session-lastseen="2026-10-19 16:44" data-session-expires="2026-10-20 04:44">
    350                     <td>
    351                       <span class="table-title">Firefox on Linux</span>
    352                       <span class="table-sub">internal.acme.test</span>
    353                     </td>
    354                     <td data-label="Last seen">2026-10-19 16:44</td>
    355                     <td data-label="Expires">2026-10-20 04:44</td>
    356                   </tr>
    357                   <tr data-row-dialog="session-detail-dialog" data-search="chrome macos acme.test realm 198.51.100.23" data-session-device="Chrome on macOS" data-session-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" data-session-scope="Realm session" data-session-host="acme.test" data-session-client="" data-session-ip="198.51.100.23" data-session-created="2026-10-18 13:27" data-session-lastseen="2026-10-18 15:09" data-session-expires="2026-10-24 15:09">
    358                     <td>
    359                       <span class="table-title">Chrome on macOS</span>
    360                       <span class="table-sub">acme.test</span>
    361                     </td>
    362                     <td data-label="Last seen">2026-10-18 15:09</td>
    363                     <td data-label="Expires">2026-10-24 15:09</td>
    364                   </tr>
    365                 </tbody>
    366               </table>
    367               <div class="empty" data-pager-empty hidden>
    368                 <p>No sessions match this search.</p>
    369               </div>
    370               <div class="table-pager" data-pager data-pager-table="user-sessions-table" data-pager-search="session-search" data-page-size="5">
    371                 <span class="table-pager-count" data-pager-count aria-live="polite">Showing 1-5 of 8</span>
    372                 <div class="table-pager-nav">
    373                   <button class="button button-secondary" type="button" data-pager-prev disabled>Previous</button>
    374                   <button class="button button-secondary" type="button" data-pager-next>Next</button>
    375                 </div>
    376               </div>
    377             </section>
    378 
    379             <section class="panel">
    380               <div class="section-header">
    381                 <div>
    382                   <h2>Realm memberships</h2>
    383                   <p class="note">App access is managed in the realm where the user is a member.</p>
    384                 </div>
    385               </div>
    386               <table class="table">
    387                 <thead>
    388                   <tr>
    389                     <th scope="col">Realm</th>
    390                     <th scope="col">Relationship</th>
    391                     <th scope="col">Membership</th>
    392                     <th scope="col">Roles</th>
    393                     <th scope="col">Action</th>
    394                   </tr>
    395                 </thead>
    396                 <tbody>
    397                   <tr>
    398                     <td>
    399                       <span class="table-title">Acme</span>
    400                       <span class="table-sub">acme</span>
    401                     </td>
    402                     <td data-label="Relationship">Home</td>
    403                     <td data-label="Membership">active</td>
    404                     <td data-label="Roles">None</td>
    405                     <td data-label="Action">
    406                       <a class="button-inline" href="./admin-user-detail.html">Manage access</a>
    407                     </td>
    408                   </tr>
    409                   <tr>
    410                     <td>
    411                       <span class="table-title">Globex</span>
    412                       <span class="table-sub">globex</span>
    413                     </td>
    414                     <td data-label="Relationship">Guest</td>
    415                     <td data-label="Membership">active</td>
    416                     <td data-label="Roles">None</td>
    417                     <td data-label="Action">
    418                       <a class="button-inline" href="./admin-user-detail.html">Manage access</a>
    419                     </td>
    420                   </tr>
    421                 </tbody>
    422               </table>
    423             </section>
    424           </div>
    425         </main>
    426       </div>
    427     </div>
    428 
    429     <div id="sessions-terminate-dialog" class="overlay" hidden>
    430       <div class="modal" role="dialog" aria-modal="true" aria-labelledby="sessions-terminate-title">
    431         <div class="modal-header">
    432           <h2 id="sessions-terminate-title">Terminate all sessions</h2>
    433           <button class="modal-close" type="button" aria-label="Close dialog" data-dialog-close>
    434             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    435               <path d="M18 6 6 18" />
    436               <path d="m6 6 12 12" />
    437             </svg>
    438           </button>
    439         </div>
    440         <div class="modal-body">
    441           <p class="modal-note">
    442             This signs Alice out of every active session on all hosts across every realm.
    443             She can sign in again afterwards.
    444           </p>
    445           <div class="modal-actions">
    446             <button class="button button-secondary" type="button" data-dialog-close>Cancel</button>
    447             <button class="button button-danger" type="button" id="sessions-terminate-confirm" data-dialog-close>Terminate sessions</button>
    448           </div>
    449         </div>
    450       </div>
    451     </div>
    452 
    453     <div id="session-detail-dialog" class="overlay" hidden>
    454       <div class="modal" role="dialog" aria-modal="true" aria-labelledby="session-detail-title">
    455         <div class="modal-header">
    456           <h2 id="session-detail-title">Session details</h2>
    457           <button class="modal-close" type="button" aria-label="Close dialog" data-dialog-close>
    458             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    459               <path d="M18 6 6 18" />
    460               <path d="m6 6 12 12" />
    461             </svg>
    462           </button>
    463         </div>
    464         <div class="modal-body">
    465           <dl class="details">
    466             <div>
    467               <dt>Device</dt>
    468               <dd data-session-field="device">-</dd>
    469             </div>
    470             <div>
    471               <dt>User agent</dt>
    472               <dd data-session-field="agent">-</dd>
    473             </div>
    474             <div>
    475               <dt>Scope</dt>
    476               <dd data-session-field="scope">-</dd>
    477             </div>
    478             <div>
    479               <dt>Host</dt>
    480               <dd data-session-field="host">-</dd>
    481             </div>
    482             <div>
    483               <dt>Client</dt>
    484               <dd data-session-field="client">-</dd>
    485             </div>
    486             <div>
    487               <dt>IP address</dt>
    488               <dd data-session-field="ip">-</dd>
    489             </div>
    490             <div>
    491               <dt>Signed in</dt>
    492               <dd data-session-field="created">-</dd>
    493             </div>
    494             <div>
    495               <dt>Last seen</dt>
    496               <dd data-session-field="lastseen">-</dd>
    497             </div>
    498             <div>
    499               <dt>Expires</dt>
    500               <dd data-session-field="expires">-</dd>
    501             </div>
    502           </dl>
    503           <p class="modal-note">
    504             Signing out removes this session from its host group. Other sessions are unaffected.
    505           </p>
    506           <div class="modal-actions">
    507             <button class="button button-secondary" type="button" data-dialog-close>Close</button>
    508             <button class="button button-danger" type="button" id="session-signout-confirm" data-dialog-close>Sign out this session</button>
    509           </div>
    510         </div>
    511       </div>
    512     </div>
    513 
    514     <div class="mockup-controls" aria-label="Mockup theme">
    515       <span class="mockup-label">Mockup</span>
    516       <button class="mockup-button is-active" type="button" data-theme-target="auto">Auto</button>
    517       <button class="mockup-button" type="button" data-theme-target="light">Light</button>
    518       <button class="mockup-button" type="button" data-theme-target="dark">Dark</button>
    519     </div>
    520 
    521     <script>
    522       const root = document.documentElement;
    523       const themeButtons = document.querySelectorAll('[data-theme-target]');
    524       const userThemeButtons = document.querySelectorAll('[data-user-theme]');
    525       const userThemeValues = document.querySelectorAll('[data-user-theme-value]');
    526       let currentTheme = 'auto';
    527 
    528       function setTheme(value) {
    529         currentTheme = value;
    530         if (value === 'auto') {
    531           root.removeAttribute('data-theme');
    532         } else {
    533           root.setAttribute('data-theme', value);
    534         }
    535         themeButtons.forEach((button) => {
    536           button.classList.toggle('is-active', button.dataset.themeTarget === value);
    537         });
    538         userThemeValues.forEach((element) => {
    539           element.textContent = value.charAt(0).toUpperCase() + value.slice(1);
    540         });
    541       }
    542 
    543       themeButtons.forEach((button) => {
    544         button.addEventListener('click', () => setTheme(button.dataset.themeTarget));
    545       });
    546 
    547       userThemeButtons.forEach((button) => {
    548         button.addEventListener('click', () => {
    549         const themes = ['auto', 'light', 'dark'];
    550           setTheme(themes[(themes.indexOf(currentTheme) + 1) % themes.length]);
    551         });
    552       });
    553 
    554       const userMenu = document.querySelector('.user-menu');
    555       document.addEventListener('click', (event) => {
    556         if (userMenu && userMenu.open && !userMenu.contains(event.target)) {
    557           userMenu.open = false;
    558         }
    559       });
    560 
    561       function visibleDialogs() {
    562         return [...document.querySelectorAll('.overlay:not([hidden])')];
    563       }
    564 
    565       document.querySelectorAll('[data-dialog-open]').forEach((button) => {
    566         button.addEventListener('click', () => {
    567           const dialog = document.getElementById(button.dataset.dialogOpen);
    568           if (!dialog) return;
    569           dialog.hidden = false;
    570           dialog.querySelector('.modal-close')?.focus();
    571         });
    572       });
    573 
    574       document.querySelectorAll('[data-dialog-close]').forEach((button) => {
    575         button.addEventListener('click', () => {
    576           button.closest('.overlay').hidden = true;
    577         });
    578       });
    579 
    580       document.querySelectorAll('.overlay').forEach((overlay) => {
    581         overlay.addEventListener('mousedown', (event) => {
    582           if (event.target === overlay) overlay.hidden = true;
    583         });
    584       });
    585 
    586       document.addEventListener('keydown', (event) => {
    587         if (event.key === 'Escape') {
    588           visibleDialogs().forEach((dialog) => {
    589             dialog.hidden = true;
    590           });
    591         }
    592       });
    593 
    594       const sessionsNotice = document.getElementById('sessions-terminate-notice');
    595       document.getElementById('sessions-terminate-confirm')?.addEventListener('click', () => {
    596         if (!sessionsNotice) return;
    597         sessionsNotice.textContent = 'Signed Alice out of 8 sessions across all hosts.';
    598         sessionsNotice.hidden = false;
    599       });
    600 
    601       document.getElementById('session-signout-confirm')?.addEventListener('click', () => {
    602         if (!sessionsNotice) return;
    603         sessionsNotice.textContent = 'Signed Alice out of this session.';
    604         sessionsNotice.hidden = false;
    605       });
    606     </script>
    607     <script src="./shell.js"></script>
    608   </body>
    609 </html>