Class: Decidim::Mpassid::Test::CertStore
- Inherits:
-
Object
- Object
- Decidim::Mpassid::Test::CertStore
- Defined in:
- lib/decidim/mpassid/test/cert_store.rb
Instance Attribute Summary collapse
-
#sign_certificate ⇒ Object
readonly
Returns the value of attribute sign_certificate.
-
#sign_private_key ⇒ Object
readonly
Returns the value of attribute sign_private_key.
Instance Method Summary collapse
-
#initialize ⇒ CertStore
constructor
A new instance of CertStore.
Constructor Details
#initialize ⇒ CertStore
Returns a new instance of CertStore.
9 10 11 12 13 14 15 16 17 |
# File 'lib/decidim/mpassid/test/cert_store.rb', line 9 def initialize # Use local certificate and private key for signing because otherwise # the locally signed SAMLResponse's signature cannot be properly # validated as we cannot sign it using the actual environments private # key which is unknown. sign_certgen = OmniAuth::MPASSid::Test::CertificateGenerator.new @sign_certificate = sign_certgen.certificate @sign_private_key = sign_certgen.private_key end |
Instance Attribute Details
#sign_certificate ⇒ Object (readonly)
Returns the value of attribute sign_certificate.
7 8 9 |
# File 'lib/decidim/mpassid/test/cert_store.rb', line 7 def sign_certificate @sign_certificate end |
#sign_private_key ⇒ Object (readonly)
Returns the value of attribute sign_private_key.
7 8 9 |
# File 'lib/decidim/mpassid/test/cert_store.rb', line 7 def sign_private_key @sign_private_key end |