Class: Decidim::Mpassid::Test::CertStore

Inherits:
Object
  • Object
show all
Defined in:
lib/decidim/mpassid/test/cert_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCertStore

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_certificateObject (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_keyObject (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