fix: handling of org idp migrations and google events (#5992)

This commit is contained in:
Stefan Benz
2023-06-08 16:08:13 +02:00
committed by GitHub
parent af4ef9ed59
commit 66e639b5ad
2 changed files with 13 additions and 1 deletions

View File

@@ -351,6 +351,10 @@ func (p *idpTemplateProjection) reducers() []handler.AggregateReducer {
Event: instance.OIDCIDPMigratedAzureADEventType, Event: instance.OIDCIDPMigratedAzureADEventType,
Reduce: p.reduceOIDCIDPMigratedAzureAD, Reduce: p.reduceOIDCIDPMigratedAzureAD,
}, },
{
Event: instance.OIDCIDPMigratedGoogleEventType,
Reduce: p.reduceOIDCIDPMigratedGoogle,
},
{ {
Event: instance.JWTIDPAddedEventType, Event: instance.JWTIDPAddedEventType,
Reduce: p.reduceJWTIDPAdded, Reduce: p.reduceJWTIDPAdded,
@@ -472,6 +476,14 @@ func (p *idpTemplateProjection) reducers() []handler.AggregateReducer {
Event: org.OIDCIDPChangedEventType, Event: org.OIDCIDPChangedEventType,
Reduce: p.reduceOIDCIDPChanged, Reduce: p.reduceOIDCIDPChanged,
}, },
{
Event: org.OIDCIDPMigratedAzureADEventType,
Reduce: p.reduceOIDCIDPMigratedAzureAD,
},
{
Event: org.OIDCIDPMigratedGoogleEventType,
Reduce: p.reduceOIDCIDPMigratedGoogle,
},
{ {
Event: org.JWTIDPAddedEventType, Event: org.JWTIDPAddedEventType,
Reduce: p.reduceJWTIDPAdded, Reduce: p.reduceJWTIDPAdded,

View File

@@ -263,7 +263,7 @@ func NewOIDCIDPMigratedGoogleEvent(
eventstore.NewBaseEventForPush( eventstore.NewBaseEventForPush(
ctx, ctx,
aggregate, aggregate,
OIDCIDPMigratedAzureADEventType, OIDCIDPMigratedGoogleEventType,
), ),
id, id,
name, name,