rails_simple_auth 1.0.12 → 1.0.13
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: 67feacab83a245360621b640e8cd8a7f502a57e073b100e5d30508238db02f7d
|
|
4
|
+
data.tar.gz: dea41d844cf5a18ff07d1c8d3d30fb1d0595c244e50f281a571fb02f443d8996
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd12763f2e5fc6121d20564976631d0c5286b02d078771508e43cbc44eea0b546d9c8e4bf201e3fdd0c6d5ffb6f9373f4c09748502e2ba838708bdf49b2589d9
|
|
7
|
+
data.tar.gz: 20fb18b5ee2969bb059dda696bb8378f1493673a0a2a20de15935c8bb76edbee7dc2215c2a343799301dc07935ddd245ca38d8bf4788d3d6d74d43ef5e321a15
|
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.13] - 2026-01-19
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **OAuth controller uses display names** - Success and failure messages now use `oauth_provider_display_name` instead of raw provider name
|
|
15
|
+
|
|
10
16
|
## [1.0.12] - 2026-01-19
|
|
11
17
|
|
|
12
18
|
### Added
|
|
@@ -16,14 +16,16 @@ module RailsSimpleAuth
|
|
|
16
16
|
|
|
17
17
|
user = user_class.from_oauth(auth_hash)
|
|
18
18
|
|
|
19
|
+
display_name = RailsSimpleAuth.configuration.oauth_provider_display_name(provider)
|
|
20
|
+
|
|
19
21
|
if user&.persisted?
|
|
20
22
|
destroy_temporary_user_session(user)
|
|
21
23
|
create_session_for(user)
|
|
22
24
|
run_after_sign_in_callback(user)
|
|
23
25
|
redirect_to resolve_path(:after_sign_in_path),
|
|
24
|
-
notice: "Signed in successfully with #{
|
|
26
|
+
notice: "Signed in successfully with #{display_name}."
|
|
25
27
|
else
|
|
26
|
-
redirect_to new_session_path, alert: "Could not authenticate with #{
|
|
28
|
+
redirect_to new_session_path, alert: "Could not authenticate with #{display_name}."
|
|
27
29
|
end
|
|
28
30
|
end
|
|
29
31
|
|