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 中使用 HTTP Bearer Token 進行驗證,透過 class‑based 依賴注入封裝認證邏輯。 支援兩種測試用 token(admin、guest),驗證成功後回傳使用者資訊。 同時提供 /me 與 /status 兩個示例端點,展示角色判斷與系統狀態回傳。
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: 11ms⋅