keycloak_rails 1.0.0.pre.beta.4 → 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: 4a47033c567b7abf349fc4ccce923b6385b2aa4d465144787d1979a93c5eec32
4
- data.tar.gz: a5b81b657c571fce94d3a8eb9388cf27e3790196c821a438961e2559022ba2b3
3
+ metadata.gz: 4b1a10b5a42722096112ae545c562d48bdd7b426edf8d18115de4b05a98cad1a
4
+ data.tar.gz: 44c0a47349c238e3ac95ebd30551da4476fa99a3973e473577c7c1f42aa1e868
5
5
  SHA512:
6
- metadata.gz: e9344fb490be9514d46aab9edd00f2fb9185f7692b7f99d192825957b29c3403de048351fd60909d80f852cf4cd267726f0e8aa4030e2a2316be7bd0d9914d3a
7
- data.tar.gz: '058865570f5d669606f84a3366ede82fb19c4d3e9e45f996f23a39b8b23cb4bb8d49344e70ddda79647130339cbeea53053299dd45ce1af806c10537fe5885ce'
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
@@ -25,7 +25,8 @@ module KeycloakRails
25
25
  return false unless magic_link_params[:code] && magic_link_params[:session_state]
26
26
  return false unless login_by_handshake
27
27
 
28
- params.delete :code, :session_state
28
+ params.delete :code
29
+ params.delete :session_state
29
30
  true
30
31
  end
31
32
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KeycloakRails
4
- VERSION = '1.0.0-beta.4'
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.4
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