MSP-8172 Up remote config for sudir auth & logic for /auth/login_with_sudir
This commit is contained in:
1 parent
f122ad081b
commit
e43a27e5d3
16 files changed
+240
-160
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user