{{/* 應用程式管理頁(僅 admin)。以 layout.html(側邊導覽欄版面)為根模板 組合渲染:本檔僅定義區塊,不應單獨解析執行;並引用 secretpanel.html 的一次性成果面板。導覽覆寫為「帳號資訊+金鑰管理+應用程式管理」 (後者標記 aria-current),側欄頁尾沿用版面預設。每列提供編輯(連往 /admin/applications/{id})、輪替 secret 與刪除操作;註冊表單獨立於 /admin/applications/new(本頁按鈕進入);輪替成功時於 POST 回應直接 顯示明文 client secret(僅此一次,故不採 PRG)。 */}} {{define "title"}}應用程式管理 - alterminal{{end}} {{define "navitems"}}
  • 帳號資訊
  • 金鑰管理
  • 應用程式管理
  • {{end}} {{define "content"}}

    應用程式管理

    接入 OIDC 的應用程式(Relying Party)註冊

    註冊新應用程式
    {{if .Error}}{{end}} {{if .Secret}}{{template "secretpanel" .Secret}}{{end}} {{if .Apps}}
    {{range .Apps}} {{end}}
    名稱 client_id 類型 redirect URI 登出後返回 URI grant type scope 建立時間 操作
    {{.Name}} {{.ClientID}} {{if .Confidential}} 機密式 {{else}} 公開式 {{end}} {{.RedirectURIs}} {{if .PostLogoutRedirectURIs}}{{.PostLogoutRedirectURIs}}{{else}}—{{end}} {{.GrantTypes}} {{.Scope}} {{.CreatedAt}} 編輯 {{if .Confidential}}
    {{end}}
    {{else}}

    尚無應用程式,點選上方「註冊新應用程式」建立第一個。

    {{end}}
    {{end}}