aha_builder_core 1.0.6 → 1.0.7

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: 9b8f4ea89a8c48e32987674fde51690fb12724503ca2284af49bb462c3daf70e
4
- data.tar.gz: 0ce63753cead6d93aff650414fad65863903326409508c243df9c24bfc7f912e
3
+ metadata.gz: 01f286017d6c543dba873f91442af0de4eb720d4235733cca0974f686cd87e50
4
+ data.tar.gz: b58a6fe5d0d52768ec3c2210f7530dffd67d4f881018b25b53404c0a8b099e09
5
5
  SHA512:
6
- metadata.gz: 795df34548c6321d7bd28f514071fbbb3b797ad5aaabb5f52b86ca8fc1b186741e4bdd87a9d91efbc7151c38e81b8d81340bcff1bb6de42e10832fe47f1bda3b
7
- data.tar.gz: 417d5fe39792591decf0e02be88c2095da37cf972ae94dbf5c683e7081cd2252bfc51398d9d3e1737681b280caa85b89ba9acf3dd5905afb9133462bb66bc5f6
6
+ metadata.gz: 2ae0544ebc323924b69557b0cdacf67ece563ae488a5f95d5ac4063e79b730d117e66e639bdf1fbc0fc7644dd359d468adc56a871b762903a8e78ae64fd1df5c
7
+ data.tar.gz: 2d3acc1c57c16a87ec6b90f1e0b24def64c518f0b13cc666bda96e89353654ffb80dbadacca3e7e51bb5aae9e92d039016de9505e07a0328c4db72e3c189aa2e
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aha
4
4
  module Auth
5
- VERSION = "1.0.6"
5
+ VERSION = "1.0.7"
6
6
  end
7
7
  end
data/lib/aha/auth.rb CHANGED
@@ -84,7 +84,7 @@ module Aha
84
84
 
85
85
  # Verify nonce matches
86
86
  if cookie_nonce.blank?
87
- raise "CSRF verification failed: nonce missing in session"
87
+ raise "CSRF verification failed: nonce missing in cookie"
88
88
  end
89
89
 
90
90
  if cookie_nonce != nonce
@@ -3,6 +3,7 @@ module Authentication
3
3
 
4
4
  included do
5
5
  before_action :authenticate
6
+ before_action :require_authentication
6
7
  helper_method :current_user, :logged_in?
7
8
  end
8
9
 
@@ -1,5 +1,6 @@
1
1
  class SessionsController < ApplicationController
2
2
  skip_before_action :authenticate, only: [ :new, :callback ]
3
+ skip_before_action :require_authentication, only: [ :new, :callback ]
3
4
 
4
5
  def new
5
6
  redirect_to Aha::Auth.login_url(
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.6
4
+ version: 1.0.7
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-01-07 00:00:00.000000000 Z
11
+ date: 2026-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport