mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-31 18:07:17 +02:00
core/databroker: disable identity manager user refresh when hosted authenticate is used (#4905)
This commit is contained in:
parent
1080a33443
commit
5e0079c649
2 changed files with 21 additions and 1 deletions
|
@ -160,13 +160,15 @@ func (c *DataBroker) update(ctx context.Context, cfg *config.Config) error {
|
|||
manager.WithEventManager(c.eventsMgr),
|
||||
}
|
||||
|
||||
if cfg.Options.Provider != "" {
|
||||
if cfg.Options.SupportsUserRefresh() {
|
||||
authenticator, err := identity.NewAuthenticator(oauthOptions)
|
||||
if err != nil {
|
||||
log.Error(ctx).Err(err).Msg("databroker: failed to create authenticator")
|
||||
} else {
|
||||
options = append(options, manager.WithAuthenticator(authenticator))
|
||||
}
|
||||
} else {
|
||||
log.Info(ctx).Msg("databroker: disabling refresh of user sessions")
|
||||
}
|
||||
|
||||
if c.manager == nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue