strongmind-platform-sdk 2.13.0 → 2.13.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b164de74220b62fc27130b03a337a2d75c32519a954dc5e7e56ccd39ffa2e71f
4
- data.tar.gz: 3e9813743a652d09e5f00a7a256542db88080580741a80c7ce81b8a7b91aaced
3
+ metadata.gz: 1828389247058021cdf82b6c505564d60ddf0186205e57cbd4c7f6657c0e0fc7
4
+ data.tar.gz: 210b3b0234e91cc1c39b5bd14c3a52b4740fcae32ab45fc0105dfdb494d2d0c7
5
5
  SHA512:
6
- metadata.gz: 05c3c8a45908a4cb204235c81511bfaa632e635e3e0e07f263dcab13c04d32f9648e2d56ec65b92c69edbbe485f376e1925663666299a028ef43969f768f6711
7
- data.tar.gz: 8047cfca6928a4628c1f47c21a46c191895b7ce707a2d3027b9fd729bc992cf5ea262b7b40946baac6354b5a3eb91ac4a85527b878c6238fe33150edb2bb811e
6
+ metadata.gz: 0bd91bed0f709dcf9062a390f0cf07b5b99aae5f7850a95a5babb4ff4d696048acabd0c109b9f3b93ff5d534a87ce4c8ce463f3e7f17bca3ecd8aa3e285ee8ca
7
+ data.tar.gz: e90cfb387adb54b28d2390cf237e2df2e7520fed4bace564c936827fac4d87346dbafff6949074f5edc31cd70e02a38c167bcd68f1b7d0a8545cfb35cbc7b0d5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strongmind-platform-sdk (2.13.0)
4
+ strongmind-platform-sdk (2.13.1)
5
5
  aws-sdk-secretsmanager (~> 1.66)
6
6
  devise
7
7
  faraday (~> 2.5, >= 2.5.2)
@@ -38,7 +38,7 @@ GEM
38
38
  ast (2.4.2)
39
39
  attr_required (1.0.1)
40
40
  aws-eventstream (1.2.0)
41
- aws-partitions (1.745.0)
41
+ aws-partitions (1.749.0)
42
42
  aws-sdk-core (3.171.0)
43
43
  aws-eventstream (~> 1, >= 1.0.2)
44
44
  aws-partitions (~> 1, >= 1.651.0)
data/README.md CHANGED
@@ -11,7 +11,7 @@ First [configure your GitHub credentials](#configure-github-credentials)
11
11
  Install the gem and add to the application's Gemfile by executing:
12
12
 
13
13
  ```
14
- gem "strongmind-platform-sdk", "~> 2.9.1"
14
+ gem "strongmind-platform-sdk", "~> 2.13.1"
15
15
  ```
16
16
 
17
17
  If bundler is not being used to manage dependencies, install the gem by executing:
@@ -12,7 +12,10 @@
12
12
 
13
13
  1. Run the generator: `rails g strong_mind_rails_identity:install`
14
14
 
15
- 1. Execute `bin/rails db:migrate RAILS_ENV=development`
15
+ 1. Remove the first devise line with the default devise plugins from `app/models/user.rb`. You should end up with the only devise line being the following:
16
+ ```ruby
17
+ devise :omniauthable, omniauth_providers: [:strongmind]
18
+ ```
16
19
 
17
20
  1. Create a client in the Identity Server and add the following to the .env file:
18
21
  ```
@@ -22,9 +25,12 @@
22
25
 
23
26
  1. If you want user sessions to persist across restarts of your server in dev, and you aren't using redis in dev, add `config.cache_store = :file_store` to `config/environments/development.rb`
24
27
 
25
- 1. Remove the first devise line with the default devise plugins from `app/models/user.rb`. You should end up with the only devise line being
26
- ```ruby
27
- devise :omniauthable, omniauth_providers: [:strongmind]
28
- ```
29
-
28
+ 1. Do you want all pages to require authentication?
29
+ - If yes, add this to `app/controllers/application_controller.rb` right under the class declaration:
30
+ ```ruby
31
+ before_action :authenticate_user!
32
+ ```
33
+ - If no, remove line 2 of `app/controllers/strong_mind_auto_login_controller.rb` and add the above line only to controllers that should require authentication.
34
+ 1. Execute `bin/rails db:migrate RAILS_ENV=development`
35
+
30
36
  1. Start the server: `rails s`
@@ -4,6 +4,8 @@
4
4
  document.forms[0].submit();
5
5
  }
6
6
  // Submit the form on load
7
- submitForm();
7
+ window.addEventListener("load", (event) => {
8
+ submitForm();
9
+ });
8
10
 
9
11
  </script>
@@ -1,4 +1,6 @@
1
1
  class StrongMindAutoLoginController < ApplicationController
2
+ skip_before_action :authenticate_user!, only: :index
3
+
2
4
  def signed_in
3
5
  render
4
6
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlatformSdk
4
- VERSION = "2.13.0"
4
+ VERSION = "2.13.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongmind-platform-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.0
4
+ version: 2.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platform Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-11 00:00:00.000000000 Z
11
+ date: 2023-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday