chore(oidc): add span to token lifetime query

This commit is contained in:
Tim Möhlmann 2024-11-27 16:59:27 +02:00
parent 4413efd82c
commit a5130f5c0b

View File

@ -543,6 +543,9 @@ func (c *OIDCSessionEvents) PushEvents(ctx context.Context) (*OIDCSession, error
}
func (c *Commands) tokenTokenLifetimes(ctx context.Context) (accessTokenLifetime time.Duration, refreshTokenLifetime time.Duration, refreshTokenIdleLifetime time.Duration, err error) {
ctx, span := tracing.NewSpan(ctx)
defer func() { span.EndWithError(err) }()
oidcSettings := NewInstanceOIDCSettingsWriteModel(ctx)
err = c.eventstore.FilterToQueryReducer(ctx, oidcSettings)
if err != nil {