feat: honor project login requirement in CollabTable
This commit is contained in:
1 parent
ec82a8a8b9
commit
407966fc94
2 files changed
+20
-21
No files matched your search
+4
-6
@@ -69,12 +69,10 @@ const (
|
||||
legacySessionCookieName = "collabtable_session"
|
||||
)
|
||||
|
||||
// collabTableAuthStore adapts *DB to sharedauth.ProxyStore. CollabTable never
|
||||
// had an independent "require login" toggle (a session was always required
|
||||
// whenever AUTHGUARD_URL was configured at all) so LoginRequired always
|
||||
// reports true and SetLoginRequired is a no-op -- server.go correspondingly
|
||||
// wires sharedauth.Service.Require rather than the *IfLoginRequired
|
||||
// middleware family. IsSetupClaimed/TryClaimSetup/UnclaimSetup delegate
|
||||
// collabTableAuthStore adapts *DB to sharedauth.ProxyStore. The login
|
||||
// requirement is runtime-controlled by ProjectConfigurator through
|
||||
// sharedauth.Service's internal endpoint; this store supplies the conservative
|
||||
// required-by-default fallback. IsSetupClaimed/TryClaimSetup/UnclaimSetup delegate
|
||||
// straight through to *DB's existing methods of the same name/signature (see
|
||||
// db.go), reusing the collabtable_setup_state table/queries verbatim.
|
||||
type collabTableAuthStore struct {
|
||||
|
||||
Reference in new issue
Block a user