feat(auth): add OIDC-only member authentication (#686)

* feat(auth): add OIDC member authentication

* docs(auth): document OIDC member login

* fix(auth): address OAuth review feedback

* refactor(auth): move OAuth flow into member provider
This commit is contained in:
@刘羡鱼
2026-09-24 06:15:46 +08:00
committed by GitHub
parent ddf2787c5e
commit dae23a90b5
28 changed files with 1517 additions and 61 deletions
+3
View File
@@ -1,6 +1,9 @@
package types
import "net/http"
type ApiManager interface {
Route(r Router)
AddRouter(path string, router func(Router))
IsAuthenticated(r *http.Request) bool
}
+2 -1
View File
@@ -9,7 +9,8 @@ var (
)
type MemberProfile struct {
Name string `json:"name"`
Name string `json:"name"`
Avatar string `json:"avatar"`
// permissions
IsAdmin bool `json:"is_admin" mapstructure:"is_admin"`