To better guard the experience interaction status, this PR makes the interactionEvent property mandatory.
For new experience interaction initiation endpoint (PUT /experience):
Skip the koaExperienceInteraction middleware.
Create a new ExperienceInteraction instance by providing a new interactionEvent value.
For existing experience interaction endpoints:
User the koaExperienceInteraction middleware to retrieve the interaction data from the OIDC provider's interaction storage.
The interactionEvent property will be strictly guarded. An interaction_not_found error will be thrown if the interactionResult data dose not satisfy the experience interaction data guard.
Summary
To better guard the experience interaction status, this PR makes the
interactionEvent
property mandatory.For new experience interaction initiation endpoint (
PUT /experience
):koaExperienceInteraction
middleware.ExperienceInteraction
instance by providing a newinteractionEvent
value.For existing experience interaction endpoints:
koaExperienceInteraction
middleware to retrieve the interaction data from the OIDC provider's interaction storage.interactionEvent
property will be strictly guarded. Aninteraction_not_found
error will be thrown if theinteractionResult
data dose not satisfy the experience interaction data guard.Testing
integration test added
Checklist
.changeset