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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b1a10b5a42722096112ae545c562d48bdd7b426edf8d18115de4b05a98cad1a
|
4
|
+
data.tar.gz: 44c0a47349c238e3ac95ebd30551da4476fa99a3973e473577c7c1f42aa1e868
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = -> {
|
68
|
-
KeycloakRails.refresh_cookie_proc = -> {
|
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
|
-
|
73
|
-
|
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 = -> {
|
79
|
-
KeycloakRails.destroy_refresh_cookie_proc = -> {
|
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
|
28
|
+
params.delete :code
|
29
|
+
params.delete :session_state
|
29
30
|
true
|
30
31
|
end
|
31
32
|
|
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
|
+
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-
|
11
|
+
date: 2022-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|