Which gem for SSO support in Rails?

Hi, we sell our product in the AWS marketplace and it runs on EC2 instances. A customer asked us to add SSO support. We use ruby 2.3.5 and rails 5.0.6. This particular customer users Okta, but we want to add generic SSO / SAML support.

Which gem is the best one to use?

devise_saml_authenticatable - Seems to have more information online about setup and configuration, but seems more complex with more settings. There are also more complaints about this gem.

ruby-saml - Seems quite simple to set up. The tutorials I’ve found are too simplistic though, not enough detail.

To anyone who has tried, which gem is better?

Many thanks, Raj, Pia Software.

Whichever one works is better! :slight_smile:

You could also use an OIDC library for Rails. For example, https://github.com/doorkeeper-gem/doorkeeper-openid_connect. I haven’t tried it myself.