Skip to content

Commit fced9c7

Browse files
fix: realm
1 parent 835d927 commit fced9c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func authMiddleware(cfg config.Config, next http.Handler) http.Handler {
168168
// If both are missing, send 401 with WWW-Authenticate header pointing to PRM endpoint
169169
if apiKey == "" && bearerToken == "" {
170170
prmURL := fmt.Sprintf("%s/.well-known/oauth-protected-resource", cfg.BaseURL)
171-
w.Header().Set("WWW-Authenticate", fmt.Sprintf(`Bearer realm="mcp", resource_metadata="%s"`, prmURL))
171+
w.Header().Set("WWW-Authenticate", fmt.Sprintf(`Bearer realm="createos", resource_metadata="%s"`, prmURL))
172172
w.WriteHeader(http.StatusUnauthorized)
173173
return
174174
}

0 commit comments

Comments
 (0)