strongmind-auth 1.1.83 → 1.1.85
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -1
- data/app/controllers/users/omniauth_callbacks_controller.rb +1 -0
- data/lib/strongmind/auth/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: 0603240cd0611c8ebc893ea92f1ef516b354eedf559535aad6f86a9dc52a4fd5
|
4
|
+
data.tar.gz: 5d5361c33fb59d32b1502896c17c5bb377654539b84cda2974a47bea19fc145c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc102f6517e367dae3274ab86bfeb0bc6d631fb1b0b73accd082e6cd876488d9cd38acd010f9b348521116e13e822b8f30aaa08d81454cfbb8ff13e6c99bacff
|
7
|
+
data.tar.gz: 31693ef186994a153fc0c87b191286fffd5381273be08e811b7d2ada76eb02250d7c5bb510eb211a044c47a521bac74a5ff4a3cff343f848990c70ab894fbd4f
|
data/README.md
CHANGED
@@ -6,6 +6,18 @@ Ruby gem for authentication in a rails app
|
|
6
6
|
|
7
7
|
1. Use [Repository Dashboard](https://repository-dashboard.strongmind.com/repositories/new) to create a new repository
|
8
8
|
with the rails-template.
|
9
|
+
1. If you **did not** use the rails-template from Repository Dashboard, you will need to add the following to your Gemfile:
|
10
|
+
```ruby
|
11
|
+
gem "strongmind-platform-sdk"
|
12
|
+
gem 'font-awesome-rails'
|
13
|
+
gem 'devise'
|
14
|
+
gem 'omniauth'
|
15
|
+
gem 'omniauth_openid_connect'
|
16
|
+
gem 'omniauth-rails_csrf_protection'
|
17
|
+
gem 'dotenv-rails'
|
18
|
+
gem 'sentry-rails'
|
19
|
+
```
|
20
|
+
1. If you want to use the common navbar you will also need to go to [section 5 and 6 in the existing application doc](https://github.com/StrongMind/rails-auth/blob/main/docs/adding-to-an-existing-app.md) and follow the instructions there after running the generator in step 2.
|
9
21
|
1. Navigate to the repo folder in a terminal and execute `rails g strongmind:install`
|
10
22
|
1. Move app root to authenticated root in routes. Should look like this:
|
11
23
|
```ruby
|
@@ -13,6 +25,7 @@ Ruby gem for authentication in a rails app
|
|
13
25
|
root to: 'home#index' # or whatever makes sense for your app
|
14
26
|
end
|
15
27
|
```
|
16
|
-
1. Create a new client in identity server and `IDENTITY_CLIENT_ID` and `IDENTITY_CLIENT_SECRET` values to .env file.
|
28
|
+
1. Create a [new client in stage identity server](https://devlogin.strongmind.com/Clients/Create) and `IDENTITY_CLIENT_ID` and `IDENTITY_CLIENT_SECRET` values to .env file.
|
29
|
+
1. Create a [new client in prod identity server](https://login.strongmind.com/Clients/Create) and `IDENTITY_CLIENT_ID` and `IDENTITY_CLIENT_SECRET` values to .env file.
|
17
30
|
1. Execute `rails dev:cache` to turn on caching in development.
|
18
31
|
1. Execute `bin/dev`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strongmind-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.85
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Team Belding
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|