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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47b5bf13de9f27710d0d80a2c67b894f46218c919ad1583a8d8884ba21f76782
4
- data.tar.gz: 2dc43227fc6b49deb1cf8c358426e066cf5b44fd001436f85d38c39521ae1f45
3
+ metadata.gz: 0603240cd0611c8ebc893ea92f1ef516b354eedf559535aad6f86a9dc52a4fd5
4
+ data.tar.gz: 5d5361c33fb59d32b1502896c17c5bb377654539b84cda2974a47bea19fc145c
5
5
  SHA512:
6
- metadata.gz: c2426febe44a436573f974b07a8fac1ba8cb8124db793408f81600f83fb51dace4e0f1ef57f3ac13f5d25270b3a9e1993ebb7dcd1315ee995323c1aca9121770
7
- data.tar.gz: 9381953e76b4db3e8d5ee51d4fb4bef69ae3b96258f9cf47ca7a87c699bb885d00a99aba2bf5796c8e284f6c3f9b763cd77b973ce7017af0fef55880f2ba1b50
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`
@@ -12,6 +12,7 @@ module Users
12
12
 
13
13
  render plain: "You do not have permission to access this application.", status: :unauthorized and return if @user.nil?
14
14
 
15
+ reset_session
15
16
  session[:refresh_token] = auth.credentials['refresh_token']
16
17
  flash.delete(:notice)
17
18
 
@@ -1,5 +1,5 @@
1
1
  module Strongmind
2
2
  module Auth
3
- VERSION = "1.1.83"
3
+ VERSION = "1.1.85"
4
4
  end
5
5
  end
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.83
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-18 00:00:00.000000000 Z
11
+ date: 2024-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails