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: 30124379c106a7a57827a0d4ef2a0b32d60d4805cb9e791ce52f7813fd95d002
4
- data.tar.gz: 1c189283a64adcde157dd6fee5fe641f7fd87ddbe9599f866028bfe4281a985f
3
+ metadata.gz: 04c418cb077b5736844ca605b1bb7e47dcc2782b9da7f4a54d68c1072837c278
4
+ data.tar.gz: 5a67d06975d93e91652cceef6d423fcd5aeb05392ceee206efff028245429768
5
5
  SHA512:
6
- metadata.gz: d5b490c19d61cc5bcef3987b68bcada8e177393b382546e35d4c11c34647fb5c5897801cc5efbb89b60b0b18b828845a122a4e8faeb817d1c5f0e01f1e010c71
7
- data.tar.gz: 48a9e14a55b43af0f588038a7ff72caec4cf894511fa8b522b3d0da20f410887f9a83ed56d6c3a0745a6848e903aef8ef1c284163412adecc3ac49f0a354847a
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 = "#{ENV.fetch("APPLICATION_ID", nil)}.#{Rails.env.development? ? 'dev' : 'prod'}"
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] = 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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Aha
4
- VERSION = "1.0.18"
4
+ VERSION = "1.0.20"
5
5
  end
@@ -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(id: session_result.user_id)
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.18
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-20 00:00:00.000000000 Z
11
+ date: 2026-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport