π Multi-Tenant SSO using Devise
Recently while scrolling on Twitter I saw this tweet by John Nunemaker.
Who knows things about multi-tenant SSO (SAML or Okta, etc.) + ruby on rails and is willing to do a call with me? Happy to barter or pay.
β John Nunemaker (@jnunemaker) May 18, 2023
Since we had implemented multi-tenant SSO at PagerTree, I thought I could help out. After all, I claimed it was only ~100 lines of code (turns out it is closer to 400). After sharing a raw gist, I realized a blog post would be more helpful to the community.
In this blog post, I want to describe how we implemented multi-tenant SSO at PagerTree to work with any SAML2 identity provider (Okta, Google, Azure, etc.).