Giter Club home page Giter Club logo

Comments (4)

mvastola avatar mvastola commented on June 14, 2024

Just ran into this myself today. In README.md, when you see:

service_providers = {
    "some-issuer-url.com/saml" => {
      fingerprint: "9E:65:2E:03:06:8D:80:F2:86:C7:6C:77:A1:D9:14:97:0A:4D:F4:4D",
      metadata_url: "http://some-issuer-url.com/saml/metadata"
    },
  }

You want to change that to:

service_providers = {
    "some-issuer-url.com/saml" => {
      cert: OpenSSL::X509::Certificate.new(File.read(Rails.root.join('config', 'saml_sp.pem')))
      fingerprint: "9E:65:2E:03:06:8D:80:F2:86:C7:6C:77:A1:D9:14:97:0A:4D:F4:4D",
      metadata_url: "http://some-issuer-url.com/saml/metadata"
    },
  }

.. replace that path with the path to the public cert for your Service Provider, as necessary. (If you really needed, It should also be possible to obtain the cert dynamically via this sourcery, in which case I'd loop through the service_providers after setting the hash to merge in that key.)

Note you have to prepend:

require 'openssl'

.. to the top of your initializer if you get the error that OpenSSL is not defined.

from saml_idp.

mvastola avatar mvastola commented on June 14, 2024

Er. Disregard what I just crossed out. That's a horrible idea, security-wise. I can't believe I just suggested it.

from saml_idp.

toasterlovin avatar toasterlovin commented on June 14, 2024

I'll just add in here that, if you're following the ruby-saml gem documentation (speaking specifically of the issuer setting), then the key for the service provider may need to specify the protocol. So, you may need http://some-issuer-url.com/saml, rather than just some-issuer-url.com/saml.

from saml_idp.

jphenow avatar jphenow commented on June 14, 2024

Cleaning up old issues. I'm assuming folks here figured out what they needed (or have moved on). If that's incorrect reopen this and we'll continue the discussion.

from saml_idp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.