feat(auth-app): make service optional plus docu

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg
2024-07-15 10:51:04 +02:00
parent 3b3d30159d
commit 11103a4220
8 changed files with 46 additions and 11 deletions

View File

@@ -294,10 +294,12 @@ func loadMiddlewares(logger log.Logger, cfg *config.Config,
})
}
authenticators = append(authenticators, middleware.AppAuthAuthenticator{
Logger: logger,
RevaGatewaySelector: gatewaySelector,
})
if cfg.AuthMiddleware.AllowAppAuth {
authenticators = append(authenticators, middleware.AppAuthAuthenticator{
Logger: logger,
RevaGatewaySelector: gatewaySelector,
})
}
authenticators = append(authenticators, middleware.PublicShareAuthenticator{
Logger: logger,
RevaGatewaySelector: gatewaySelector,