401 Unauthorized - apokalipto/devise_saml_authenticatable GitHub Wiki

When you get a 401 Unauthorized error, that could indicate a few different things. There's a couple log messages for common issues:

You can also set Devise.saml_failed_callback to a class that has a #handle(saml_response, strategy) method, and inspect the response and strategy yourself for problems.