maybe add if defined?  sso_method_class.constantize 
this should hopefully avoid the exception?