问题
Where can I dig up a Ruby or Ruby on Rails library for SAML 2.0 SSO. I have a set of enterprise applications that are to be built but need to have federated login from a central authentication system. I have used SAML 1.1 and SAML 2.0 in a Microsoft .Net environment but have yet to see a library that handles both SAML Providers and Consumers for Ruby on Rails. Can someone point me in the right direction or tell me if I need to build the library myself?
回答1:
The best places to look are Ruby Toolbox and Rubygems.org - if it's not there, you may try Github, but your chances are slim now.
My rule is: estimate how long it would take you to build it yourself. If you have spend a reasonable amount of time (say, 10%) on finding an existing solution, but none is out there (or working), then code it yourself.
回答2:
I played with this one once: https://github.com/onelogin/ruby-saml It might be what you're looking for.
回答3:
AssureBridge SSOExchange is a service that supports SAML 1.1 and 2.0. It is available with a simple Ruby connector that integrates simply into Ruby apps without the need for the developer to know any SAML. It typically requires only a few lines of code in you r application.
Check it out at: http://www.assurebridge.com/integrations/
来源:https://stackoverflow.com/questions/4232244/saml-2-0-sso-for-ruby-on-rails