killbill-aviate 1.1.0.pre.10 → 2.0.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d12256eb8b726d2bbc764827f1d7dcf6c879113b94b9f4479026c729222893d4
|
|
4
|
+
data.tar.gz: a3b8670cfd86fe4c2e62d4cf9b219b6c8ea4df4b72524dead379dd51aa923af4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f2df8830445b0427aeec0138c75301bb2a530dc86bd9a70e03077a505119386550f88c9bb89b5673a85d132178f1debb82d29134870816fffd8ea7f393263bc9
|
|
7
|
+
data.tar.gz: 9ea2b72a57b541988f0693e300538a52541d01406b4634ad9a061d753e07f140c7c39b8f769ccc4d340121915bf07e697885d8a699eda260951b218b348968eb
|
|
@@ -16,7 +16,7 @@ module Aviate
|
|
|
16
16
|
|
|
17
17
|
if response.is_a?(Hash) && response['token']
|
|
18
18
|
# Store JWT in encrypted cookie
|
|
19
|
-
cookies
|
|
19
|
+
cookies[:jwt_token] = {
|
|
20
20
|
value: response['token'],
|
|
21
21
|
httponly: true,
|
|
22
22
|
secure: request.ssl?,
|
|
@@ -34,10 +34,7 @@ module Aviate
|
|
|
34
34
|
def session_destroy
|
|
35
35
|
# Delete JWT cookie
|
|
36
36
|
cookies.delete(:jwt_token)
|
|
37
|
-
|
|
38
|
-
# Clean up any existing session references
|
|
39
|
-
session.delete(:aviate_token_ref)
|
|
40
|
-
|
|
37
|
+
|
|
41
38
|
flash[:notice] = t('aviate.configuration.logout_success')
|
|
42
39
|
redirect_to aviate_root_path
|
|
43
40
|
end
|
|
@@ -69,10 +69,10 @@ module Aviate
|
|
|
69
69
|
def options_for_klient
|
|
70
70
|
# Get the base options from parent class
|
|
71
71
|
base_options = super
|
|
72
|
-
|
|
72
|
+
|
|
73
73
|
# Add JWT token from cookies if available
|
|
74
|
-
if cookies
|
|
75
|
-
base_options.merge(jwt_token: cookies
|
|
74
|
+
if cookies[:jwt_token].present?
|
|
75
|
+
base_options.merge(jwt_token: cookies[:jwt_token])
|
|
76
76
|
else
|
|
77
77
|
base_options
|
|
78
78
|
end
|
data/config/routes.rb
CHANGED
|
@@ -5,7 +5,7 @@ Aviate::Engine.routes.draw do
|
|
|
5
5
|
|
|
6
6
|
scope '/configuration' do
|
|
7
7
|
match '/session_create' => 'configuration#session_create', :via => :post, :as => 'aviate_session_create'
|
|
8
|
-
match '/session_destroy' => 'configuration#session_destroy', :via => [
|
|
8
|
+
match '/session_destroy' => 'configuration#session_destroy', :via => %i[get delete], :as => 'aviate_session_destroy'
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
resources :accounts, param: :account_id do
|
data/lib/aviate/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: killbill-aviate
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kill Bill core team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: killbill-assets-ui
|
|
@@ -114,9 +114,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
114
114
|
version: '0'
|
|
115
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
requirements:
|
|
117
|
-
- - "
|
|
117
|
+
- - ">="
|
|
118
118
|
- !ruby/object:Gem::Version
|
|
119
|
-
version:
|
|
119
|
+
version: '0'
|
|
120
120
|
requirements: []
|
|
121
121
|
rubygems_version: 3.4.10
|
|
122
122
|
signing_key:
|