Rebrand graph service

leaving out LDAP related stuff for now
This commit is contained in:
Ralf Haferkamp
2025-01-16 15:59:35 +01:00
parent 61b48a2580
commit ceb5e92c28
7 changed files with 24 additions and 29 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ func authOptions(opts ...account.Option) account.Options {
// Auth provides a middleware to authenticate requests using the x-access-token header value
// and write it to the context. If there is no x-access-token the middleware prevents access and renders a json document.
func Auth(opts ...account.Option) func(http.Handler) http.Handler {
// Note: This largely duplicates what ocis-pkg/middleware/account.go already does (apart from a slightly different error
// Note: This largely duplicates what pkg/middleware/account.go already does (apart from a slightly different error
// handling). Ideally we should merge both middlewares.
opt := authOptions(opts...)
tokenManager, err := jwt.New(map[string]interface{}{