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 +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/docs/identity_installation_in_rails.md +12 -6
- data/lib/generators/templates/strong_mind_auto_login.html.erb +3 -1
- data/lib/generators/templates/strong_mind_auto_login_controller.rb +2 -0
- data/lib/platform_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1828389247058021cdf82b6c505564d60ddf0186205e57cbd4c7f6657c0e0fc7
|
4
|
+
data.tar.gz: 210b3b0234e91cc1c39b5bd14c3a52b4740fcae32ab45fc0105dfdb494d2d0c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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.
|
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.
|
26
|
-
|
27
|
-
|
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`
|
data/lib/platform_sdk/version.rb
CHANGED
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.
|
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
|
+
date: 2023-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|