aha_builder_core 1.0.18 → 1.0.20
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: 04c418cb077b5736844ca605b1bb7e47dcc2782b9da7f4a54d68c1072837c278
|
|
4
|
+
data.tar.gz: 5a67d06975d93e91652cceef6d423fcd5aeb05392ceee206efff028245429768
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4328aebeeac2eb6c8418e41e4a80e1189c2a30056d5830b0838eb06dc492a7b72aeef7af82109588f5f2d8d8b932c8e279e3d31fdc2be05847a4b1b91487dcc0
|
|
7
|
+
data.tar.gz: af6a7898fb682ea7e23da60a29873871952ec7a753bf75eb1a73ac8083a4e329587328eab4a424648cc88f096a61dfc32d88ac1c98706a8b2c304bcf773b9c10
|
|
@@ -31,7 +31,7 @@ module Aha
|
|
|
31
31
|
def initialize
|
|
32
32
|
@server_url = ENV.fetch("AHA_CORE_SERVER_URL", "https://secure.aha.io/api/core")
|
|
33
33
|
@api_key = ENV.fetch("AHA_CORE_API_KEY", nil)
|
|
34
|
-
@client_id =
|
|
34
|
+
@client_id = ENV.fetch("APPLICATION_ID", nil)
|
|
35
35
|
@jwks_cache_ttl = 3600 # 1 hour
|
|
36
36
|
@refresh_lifetime_fraction = 0.5
|
|
37
37
|
@timeout = 30
|
data/lib/aha/auth.rb
CHANGED
|
@@ -50,7 +50,14 @@ module Aha
|
|
|
50
50
|
nonce = SecureRandom.hex(10)
|
|
51
51
|
|
|
52
52
|
# Store nonce in the client's session if provided
|
|
53
|
-
cookies[:auth_nonce] =
|
|
53
|
+
cookies[:auth_nonce] = {
|
|
54
|
+
value: nonce,
|
|
55
|
+
secure: true,
|
|
56
|
+
same_site: :none,
|
|
57
|
+
partitioned: true,
|
|
58
|
+
expires: 1.hour.from_now,
|
|
59
|
+
http_only: true
|
|
60
|
+
}
|
|
54
61
|
|
|
55
62
|
# Encode the state with nonce
|
|
56
63
|
state_data = {
|
data/lib/aha/version.rb
CHANGED
|
@@ -23,7 +23,7 @@ module Authentication
|
|
|
23
23
|
session[:refresh_token] = session_result.new_refresh_token
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
@current_user = User.find_by(
|
|
26
|
+
@current_user = User.find_by(auth_identifier: session_result.user_id)
|
|
27
27
|
Current.user = @current_user
|
|
28
28
|
else
|
|
29
29
|
clear_session
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aha_builder_core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.20
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aha! Labs Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-02-
|
|
11
|
+
date: 2026-02-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|