strongmind-auth 1.1.76 → 1.1.82

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: 97c1b7fb5d1dc054c740f5531923c060625e4af1f7d85188db7b3ff3b479ea01
4
- data.tar.gz: 7ba5c4d51d0f449e4c78b34cb2f997134f14b7bc64d354cf077460cf31fb0c01
3
+ metadata.gz: 6fb2843b1a26c0bbc36afa72e4fd6a45b621c14c865e578d70e78aefd0f2b202
4
+ data.tar.gz: bb0ded5095d76db90c96fd0123466bdda08f5ea5759035c612f11563c66659ef
5
5
  SHA512:
6
- metadata.gz: 3948cba9f91d973154152d3bd0d9ce92ccb83bd9a2b9724102a76d46cb6f2b481408f6855d416c778ba041576b946a99ea1761d4ed8fcead5318c71dae403bec
7
- data.tar.gz: 19e8e94d1fa603bc207bda0a72337441633380808d4bd972a2c7ef039c0c734d15b2f9dd84e3dd6939355166502e6abdbf0aa75319917ffe3315e9b277d6943e
6
+ metadata.gz: 663c9690a8cf61ff188125adf217630717132cce7ad596b58e48d0ab3a26cee2015e27c6e0d894b094ed91d3c309f34c981369e004c9afb4f59ebd1b67bb1170
7
+ data.tar.gz: 4619927797e104db6d597b8fdac6bbbbcf85e29c4666649f202d55913df6dbd84d66a92cf554c9a28127691278bf535baadc6f834b949ebd218a104d45eb7a8b
@@ -69,7 +69,7 @@ module JwtUtilities
69
69
  end
70
70
 
71
71
  def user_jwt(session_data)
72
- tokens = current_user.nil? ? nil : Rails.cache.read(current_user&.uid)
72
+ tokens = current_user&.auth_token_cache
73
73
  auth_client = PlatformSdk::Identity::AuthClient.new(
74
74
  ENV['IDENTITY_BASE_URL'],
75
75
  ENV['IDENTITY_CLIENT_ID'],
@@ -18,7 +18,7 @@ module Users
18
18
  if @user.persisted?
19
19
  sign_in_and_redirect @user, event: :authentication # this will throw if @user is not activated
20
20
  else
21
- session['devise.openid_connect_data'] = { uid: @user.identity_id } # Removing extra as it can overflow some session stores
21
+ session['devise.openid_connect_data'] = { uid: @user.uid } # Removing extra as it can overflow some session stores
22
22
  sign_in_and_redirect @user
23
23
  end
24
24
  end
@@ -28,6 +28,6 @@ class UserBase < ApplicationRecord
28
28
  end
29
29
 
30
30
  def invalidate_all_sessions!
31
- update_attribute(:session_token, SecureRandom.hex)
31
+ update_column(:session_token, SecureRandom.hex)
32
32
  end
33
33
  end
@@ -1,5 +1,5 @@
1
1
  module Strongmind
2
2
  module Auth
3
- VERSION = "1.1.76"
3
+ VERSION = "1.1.82"
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.76
4
+ version: 1.1.82
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 00:00:00.000000000 Z
11
+ date: 2024-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails