Questions tagged [ruby-saml]

RubySAML is a SAML SSO for Ruby

The Ruby SAML library is for implementing the client side of a SAML authorization, i.e. it provides a means for managing authorization initialization and confirmation requests from identity providers.

SAML authorization is a two step process and you are expected to implement support for both.

12 questions
5
votes
1 answer

Integrate SAML in rails application

I am trying to add the ruby-saml in my project. But I am a bit confused about how to implement it in my scenario. I am on a website let's say abc.com and there is a button. When I click on the button, I need to redirect to the website xyz.com where…
Aniket Tiwari
  • 3,561
  • 4
  • 21
  • 61
2
votes
1 answer

Why would anyone ever set certificate signing for ruby-saml gem requests/responses to false?

In ruby-saml gem, we have the below options config for deciding whether to sign certain request/response: settings.security[:authn_requests_signed] = true # Enable or not signature on AuthNRequest settings.security[:logout_requests_signed]…
Henry Yang
  • 2,283
  • 3
  • 21
  • 38
2
votes
1 answer

ruby-saml SAMLRequest as POST instead of GET

I am starting to use ruby-saml for one of the projects. IDP that I am using is expecting POST for authentication request with HTTP body containing SAMLRequest. Looking at the source code for authrequest.rb, create method can only do GET instead of…
Greg
  • 21
  • 3
1
vote
0 answers

Neither PUB key nor PRIV key: nested asn1 error

I am trying to integrate saml_idp into my project. I am getting an error Neither PUB key nor PRIV key: nested asn1 error regarding missing private key. Even though I have added my private key and certificate in config/saml_configuration.rb but still…
Aniket Tiwari
  • 3,561
  • 4
  • 21
  • 61
1
vote
0 answers

omniauth via ruby-saml gem: request.env['omniauth.auth'] always nil

For my app i want to have 'omniauth-google-oauth2', 'omniauth-ruby' and normal devise auth, and for former two I have following routes get '/auth/google_oauth2/callback' => 'authentication/omniauth#google_oauth2' get 'omniauth/failure' =>…
Umes Bastola
  • 527
  • 2
  • 6
  • 18
1
vote
1 answer

Multiple certificates(signing and encryption) for Identitiy Provider

I want to create a metadata with multiple Service Providers certificates(signing and encryption) for OneLogin SAML. But I don't know what settings parameters have to be set for that. I am using ruby-saml gem. And my current settings is as…
1
vote
1 answer

Devise: devise_saml_authenticatable - uninitialized constant SamlSessionsController

I am using https://github.com/apokalipto/devise_saml_authenticatable to implement login via SAML against Okta in a Ruby on Rails application. After setting up a sample application with the instruction mentioned above, I get the following error when…
Rohit Menon
  • 445
  • 4
  • 10
0
votes
2 answers

How to specify SAML encryption certificate in ruby-saml?

The ruby-saml gem supports adding certificate and private-key info to Service Provider's metadata, but as far as I can tell, that configures only signing certificate, but not encryption one. Here's what I do: settings.certificate = "---- BEGIN…
MikeMarsian
  • 608
  • 1
  • 7
  • 21
0
votes
0 answers

How to implement OneLogin SSO/SLO without using OneLogin UI

I am working on Ruby on Rails application. I need to implement Single Sign on / Single Log out (SSO / SLO) using OneLogin. I used OneLogin-Ruby-Sdk => https://github.com/onelogin/onelogin-ruby-sdk to log user via session token API. It creates a…
0
votes
1 answer

Always getting: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)

I use the ruby-saml gem and try to load my IDP's metadata but got this error: > OneLogin::RubySaml::IdpMetadataParser.new.parse_remote('my IDP federation metadata XML URL') Traceback (most recent call last): 12: from…
Henry Yang
  • 2,283
  • 3
  • 21
  • 38
0
votes
2 answers

undefined method `+' for nil:NilClass in sample saml application

Trying to follow the setup here to create a simple SAML application (full project I got here). I went through and did the setup bundle install rails s This went fine, but when I navigate to http://localhost:3000/ I get hit with NoMethodError in…
Th3sandm4n
  • 809
  • 4
  • 13
  • 23
0
votes
1 answer

Ruby SAML ACS Logout Request

I have created a SAML2 SSO Login(with google assertion consumer service) as follows: require 'onelogin/ruby-saml' class Saml class << self def init(provider, saml2_idp_url, saml2_issuer_url) request =…
Abhi
  • 4,123
  • 6
  • 45
  • 77