infopark_rails_connector 6.8.0.518.30999728 → 6.8.0.529.114081979

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,6 +17,12 @@ module RailsConnector
17
17
  # @api public
18
18
  DEFAULT_STORE_USER_ATTRS_IN_SESSION = [:login, :first_name, :last_name, :email, :id]
19
19
 
20
+ #
21
+ # Default path of a CA certification file in PEM format.
22
+ #
23
+ # @api public
24
+ DEFAULT_CA_FILE = File.expand_path('../../../config/ca-bundle.crt', __FILE__)
25
+
20
26
  @features = {}
21
27
 
22
28
  class << self
@@ -56,6 +62,20 @@ module RailsConnector
56
62
  # @api public
57
63
  attr_reader :content_service
58
64
 
65
+ # Gets path of a CA certification file in PEM format.
66
+ # @api public
67
+ attr_reader :ca_file
68
+
69
+ # Sets path of a CA certification file in PEM format.
70
+ # The file can contain several CA certificates.
71
+ # Certifications will be used for endpoint peer verification of various Infopark services
72
+ # e.g. Content Read Service.
73
+ # @api public
74
+ def ca_file=(path)
75
+ File.read(path) if path # Try to read the given file and fail if it doesn't exist or is not readable.
76
+ @ca_file = path
77
+ end
78
+
59
79
  # default options for {SearchRequest}
60
80
  # @api public
61
81
  def search_options
@@ -300,6 +320,7 @@ module RailsConnector
300
320
  self.auto_liquid_editmarkers = true
301
321
  self.cache_editable_workspaces = false
302
322
  self.use_recaptcha_on_user_registration = true
323
+ self.ca_file = DEFAULT_CA_FILE
303
324
 
304
325
  register_features(
305
326
  :search, :time_machine, :rss, :comments, :ratings,
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_rails_connector
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61997447
4
+ hash: 228166093
5
5
  prerelease:
6
6
  segments:
7
7
  - 6
8
8
  - 8
9
9
  - 0
10
- - 518
11
- - 30999728
12
- version: 6.8.0.518.30999728
10
+ - 529
11
+ - 114081979
12
+ version: 6.8.0.529.114081979
13
13
  platform: ruby
14
14
  authors:
15
15
  - Infopark AG
@@ -302,6 +302,7 @@ files:
302
302
  - app/views/user/profile.html.erb
303
303
  - app/views/user/register_pending.html.erb
304
304
  - app/views/user/set_password.html.erb
305
+ - config/ca-bundle.crt
305
306
  - config/cms_routes.rb
306
307
  - config/locales/de.rails_connector.controllers.yml
307
308
  - config/locales/de.rails_connector.errors.yml