When you get problem with components for SAML2 in the web viewer – install packages again.
Step 1
There are four packages for SAML2.
...
update-Package Sustainsys.Saml2 -reinstall -project WebViewer
Step 2
Then restore a Microsoft package that is being replaced by preceding installation.
...