InstitutionIdentityProvider is serialized in sessions, so needs to be serializable
Added logging
upped to new apis snapshot version
Proper error handling in case of scope error
Better error handling