You are treated with a: Doctrine\\DBAL\\Exception\\UniqueConstraintViolationException: An exception occurred while executing ‘INSERT INTO allowed_second_factor (institution, second_factor_type)...
Expected behaviour
After push of example 1 the middleware projection for institution a should look like:
institution
second_factor_type
institution-a.nl
sms
institution-a.nl
tiqr
After push of example 2 the projection should look like:
institution
second_factor_type
institution-a.nl
sms
Workaround
Push an empty list of allowed_second_factors effectively emptying the allowed_second_factors projection for the institution. And then push the new values.
Verified that adding and removing a token type for an institution is correctly reflected in the allowed_second_factor table. (Pieter van der Meulen - Apr 18, 2018)
This issue is imported from pivotal - Originaly created at Apr 3, 2018 by Michiel Kodde
allowed_second_factors
. For example:allowed_second_factors
.Doctrine\\DBAL\\Exception\\UniqueConstraintViolationException: An exception occurred while executing ‘INSERT INTO allowed_second_factor (institution, second_factor_type)...
Expected behaviour After push of example 1 the middleware projection for institution a should look like:
After push of example 2 the projection should look like:
Workaround Push an empty list of
allowed_second_factors
effectively emptying theallowed_second_factors
projection for the institution. And then push the new values.Code change https://github.com/OpenConext/Stepup-Middleware/pull/217
Relates to
119815553
https://github.com/OpenConext/Stepup-Middleware/pull/176