keycloak_rails 1.0.0.pre.beta.5 → 1.0.0.pre.beta.6.1

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: 95147ab91b9426bc49df50cd31d5af76c9ed28196ed5e1bafd827bc9a3fffdcf
4
- data.tar.gz: c816a755b522149f21a51751bbb5f67ed12c4535329411eb64ac68f5f427ce09
3
+ metadata.gz: 4b1a10b5a42722096112ae545c562d48bdd7b426edf8d18115de4b05a98cad1a
4
+ data.tar.gz: 44c0a47349c238e3ac95ebd30551da4476fa99a3973e473577c7c1f42aa1e868
5
5
  SHA512:
6
- metadata.gz: c45351bfe5408728a7ca3d9b6293979b8d1a4119340aa17a65bdb71c8c93f9fc6e27cc54fbd55c00c31eaabafc84a79b95f8fd8e56de1d06af07cede902bb001
7
- data.tar.gz: 1247fe2a149c829b501bad5ec37f3f615e466b920e6c31c8c81647a651adbc14661d17526b483309e11a790b8e9ac67e5d9c6e77fef8e47f257785ec8daa9f19
6
+ metadata.gz: aef4b4ee341cfe7ba6ab846356eff1876d1723a919a0804a0e712fe62b6ba21f8b4e6aba697fd3ac45a86878c4df11baa5675973266330bd686a67501b30d9c9
7
+ data.tar.gz: ec431f1337fb6460f9d8adf2395e3ded4c3d5effa08282a998cd216f9257cbfc15cf47e6a32441ca510baee0eef1d7bf13c131dd2fb538502502ddb8739756f8
@@ -64,19 +64,19 @@ module KeycloakRails
64
64
  end
65
65
 
66
66
  def set_auth_cookies_procs
67
- KeycloakRails.session_cookie_proc = -> { cookies.encrypted.permanent[:keycloak_session_token] }
68
- KeycloakRails.refresh_cookie_proc = -> { cookies.encrypted.permanent[:keycloak_refresh_token] }
67
+ KeycloakRails.session_cookie_proc = -> { session[:keycloak_session_token] }
68
+ KeycloakRails.refresh_cookie_proc = -> { session[:keycloak_refresh_token] }
69
69
  end
70
70
 
71
71
  def set_auth_cookies(tokens)
72
- cookies.encrypted.permanent[:keycloak_session_token] = tokens['access_token']
73
- cookies.encrypted.permanent[:keycloak_refresh_token] = tokens['refresh_token']
72
+ session[:keycloak_session_token] = tokens['access_token']
73
+ session[:keycloak_refresh_token] = tokens['refresh_token']
74
74
  true
75
75
  end
76
76
 
77
77
  def set_destroy_auth_cookies
78
- KeycloakRails.destroy_session_cookie_proc = -> { cookies.permanent[:keycloak_session_token] = nil }
79
- KeycloakRails.destroy_refresh_cookie_proc = -> { cookies.permanent[:keycloak_refresh_token] = nil }
78
+ KeycloakRails.destroy_session_cookie_proc = -> { session[:keycloak_session_token] = nil }
79
+ KeycloakRails.destroy_refresh_cookie_proc = -> { session[:keycloak_refresh_token] = nil }
80
80
  end
81
81
  end
82
82
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KeycloakRails
4
- VERSION = '1.0.0-beta.5'
4
+ VERSION = '1.0.0-beta.6.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keycloak_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.5
4
+ version: 1.0.0.pre.beta.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Omar Luqman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-15 00:00:00.000000000 Z
11
+ date: 2022-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable