2023-07-10 15:27:00 +02:00
|
|
|
package oidcsession
|
|
|
|
|
2023-07-17 14:33:37 +02:00
|
|
|
import (
|
|
|
|
"github.com/zitadel/zitadel/internal/eventstore"
|
|
|
|
)
|
2023-07-10 15:27:00 +02:00
|
|
|
|
|
|
|
func RegisterEventMappers(es *eventstore.Eventstore) {
|
2023-07-17 14:33:37 +02:00
|
|
|
es.RegisterFilterEventMapper(AggregateType, AddedType, eventstore.GenericEventMapper[AddedEvent]).
|
|
|
|
RegisterFilterEventMapper(AggregateType, AccessTokenAddedType, eventstore.GenericEventMapper[AccessTokenAddedEvent]).
|
|
|
|
RegisterFilterEventMapper(AggregateType, AccessTokenRevokedType, eventstore.GenericEventMapper[AccessTokenRevokedEvent]).
|
|
|
|
RegisterFilterEventMapper(AggregateType, RefreshTokenAddedType, eventstore.GenericEventMapper[RefreshTokenAddedEvent]).
|
|
|
|
RegisterFilterEventMapper(AggregateType, RefreshTokenRenewedType, eventstore.GenericEventMapper[RefreshTokenRenewedEvent]).
|
|
|
|
RegisterFilterEventMapper(AggregateType, RefreshTokenRevokedType, eventstore.GenericEventMapper[RefreshTokenRevokedEvent])
|
2023-07-10 15:27:00 +02:00
|
|
|
|
|
|
|
}
|