Add AUTH_DISABLED opt-out for sharedauth's new pending mode
sharedauth.NewWithStore now treats an empty AUTHGUARD_URL as "pending" (still gated, failing closed) rather than permanently disabled, so a ProjectConfigurator-registered CollabTable no longer needs AUTHGUARD_URL set at all. Add AUTH_DISABLED (default false) to opt into the old fully-open behavior explicitly via sharedauth.Disabled(), and update both READMEs/.env.example to document the three resulting states. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a018f3da4c
commit
f723afa369
7 files changed
+84
-38
No files matched your search
@@ -6,6 +6,6 @@ import (
|
||||
)
|
||||
|
||||
func TestRegisterRoutes(t *testing.T) {
|
||||
server := &Server{auth: newAuthService(nil, "", false)}
|
||||
server := &Server{auth: newAuthService(nil, "", false, false)}
|
||||
server.registerRoutes(http.NewServeMux(), webFS)
|
||||
}
|
||||
Reference in new issue
Block a user