user:thomas gists created by user
user:thomas
title:mygist gists with given title
title:mygist
filename:myfile.txt gists having files with given name
filename:myfile.txt
extension:yml gists having files with given extension
extension:yml
language:go gists having files with given language
language:go
topic:homelab gists with given topic
topic:homelab
Login
Last active 1 week ago
此腳本展示如何在 FastAPI 中同時實作 Authentication(Token 驗證)與 Authorization(Scope 權限)並使用 loguru 進行結構化日誌。 使用 class‑based 依賴注入,支援 users:read 與 system:status 兩種權限範圍。 提供兩個端點:/users/me(一般使用者)與 /admin/system(管理員),可直接以 uvicorn 啟動測試。
Embed
Embed this gist to your website.
Clone via HTTP
Clone with Git using HTTP basic authentication.
Clone via SSH
Clone with Git using an SSH key.
Powered by Opengist ⋅ Load: 3ms⋅