rails_simple_auth 1.0.8 → 1.0.9
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: c5f9d9b599e334e5a35ceb95fe2bc733593b9329e07d42c06bd306d549280567
|
|
4
|
+
data.tar.gz: bf8c69961e726a34e0caea4ad1b1d5049d942a7c6f694a2612c198ab8c795d09
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb0a48a70365bdbcb733eae1e20126f35c58f8de4cd8458dade299f6f191d819f53acb88da8f3b163447ec2abe5b7efca9e0a5c52a9e85d49863fff0eb4bb36a
|
|
7
|
+
data.tar.gz: 0d71c70b2daf1e7ae474fe86e17950941a150eecfbddfa838a2fe7110b4e860cf33487b43b7268ca096f4aad00f50f351cfbeab4ac3aa486d08d06f099caad87
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.0.9] - 2026-01-19
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **OAuth failure logging** - Logs error type, strategy, and error message when OAuth fails to help debug authentication issues
|
|
15
|
+
|
|
10
16
|
## [1.0.8] - 2026-01-19
|
|
11
17
|
|
|
12
18
|
### Fixed
|
|
@@ -28,6 +28,17 @@ module RailsSimpleAuth
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
def failure
|
|
31
|
+
error = request.env['omniauth.error']
|
|
32
|
+
error_type = request.env['omniauth.error.type']
|
|
33
|
+
strategy = request.env['omniauth.error.strategy']&.name
|
|
34
|
+
|
|
35
|
+
Rails.logger.error(
|
|
36
|
+
"[RailsSimpleAuth] OAuth failure: " \
|
|
37
|
+
"type=#{error_type.inspect}, " \
|
|
38
|
+
"strategy=#{strategy.inspect}, " \
|
|
39
|
+
"error=#{error&.message.inspect}"
|
|
40
|
+
)
|
|
41
|
+
|
|
31
42
|
redirect_to new_session_path, alert: 'Authentication failed. Please try again.'
|
|
32
43
|
end
|
|
33
44
|
end
|