SAML and Ruby: Building a Service Provider

Building SAML service provider logic in a Rails app isn't actually as daunting as I first feared.