TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN? How would you implement SSO for Rails apps?

2 pointsby jboboover 10 years ago
I&#x27;ve been tasked with building out SSO. It looks like my only real option is implementing a CAS server&#x2F;client with a paid solution like OneLogin or rbCAS (open).<p>- https:&#x2F;&#x2F;www.onelogin.com&#x2F; - https:&#x2F;&#x2F;github.com&#x2F;rbCAS&#x2F;CASino<p>1. Do I have more options besides the above? If so, which? 2. Is there a better solution besides CAS (http:&#x2F;&#x2F;jasig.github.io&#x2F;cas&#x2F;4.0.0&#x2F;index.html)?<p>Recommendations are welcome. Thanks in advance.

2 comments

tamersalamaover 10 years ago
I think you do have options. Take a look at SAML-R (SP) [1] and Ruby SAML IDP (IdP) [2]<p>They aren&#x27;t perfect but can get you up and running in relatively short time. They are also excellent in showing how things are done.<p>I worked with them before - implementing a solution where a single app acted as a SP and IdP in development env (great for validation).<p>[1] <a href="https://github.com/zendesk/samlr" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zendesk&#x2F;samlr</a> [2] <a href="https://github.com/lawrencepit/ruby-saml-idp" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lawrencepit&#x2F;ruby-saml-idp</a>
walskiover 10 years ago
I had pretty good experience with building authentication&#x2F;identity providers with Doorkeeper in Rails. Your clients would then use Omniauth or the Oauth2 directly to login via that provider. I&#x27;m boarding a plane right now, so that pulling those projects up for you is a bit tedious but just google them. Cheers!