MSP-8172 Up remote config for sudir auth & logic for /auth/login_with_sudir

This commit is contained in:
Синельник Тимур Романович committed 2026-07-28 15:52:51 +03:00
1 parent f122ad081b
commit e43a27e5d3
16 files changed
+240 -160

No files matched your search

+4 -1
View File
@@ -66,7 +66,10 @@ func (a *Assembly) ReceiveConfig(ctx context.Context, remoteConfig []byte) error
a.httpCli.GlobalRequestConfig().BaseUrl = newCfg.SudirAuth.Host
locator := NewLocator(a.logger, a.httpCli, a.db)
config := locator.Config(ctx, newCfg, time.Minute)
config, err := locator.Config(ctx, newCfg, time.Minute)
if err != nil {
a.logger.Fatal(ctx, errors.WithMessage(err, "locator config"))
}
a.server.Upgrade(config.Handler)