standard_id 0.56.0 → 0.56.1
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 +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/standard_id/email_password/registration.rb +7 -1
- data/lib/standard_id/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 076ceacf137b604ea48f42f6955f7eb9786656cab0112adc5967f06d5b6a178b
|
|
4
|
+
data.tar.gz: cb179e91df123b9d5c996626a6af219b170faa1e458c6d185dc6ad597f32c044
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8f41357e84dbe80520836d321dd3f65e1b81329fe50c34e5c005975612fb77a1bf3d919eb87289c6ddf3ba29f95a22bc84ac45c7d1c9815411ae3efcb6161ae
|
|
7
|
+
data.tar.gz: 7c9637e8e58f301576d8d5564843b19ae2d58599aa94427cf8ffd3985385badbdb5a9b2b2fe9052fa4ef3a55989b59c1362e5a95e39d933c1cd444062830f0c7
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.56.1] - 2026-10-27
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **`credential.password.created` from the API email + password sign-up now carries a usable
|
|
15
|
+
credential chain.** `EmailPassword::Registration` created the `Credential` row with
|
|
16
|
+
`Credential.create!`, but `PasswordCredential`'s `has_one :credential, touch: true` had already
|
|
17
|
+
read (and cached) the association as `nil` in `after_create`. A subscriber walking
|
|
18
|
+
`event[:credential].credential.identifier.account` got `nil`; it now gets the account, with the
|
|
19
|
+
whole chain loaded in memory, so strict-loading hosts never load it lazily.
|
|
20
|
+
`Web::SignupForm` was unaffected (it builds the chain with nested attributes); it now has the
|
|
21
|
+
same regression spec.
|
|
22
|
+
|
|
10
23
|
## [0.56.0] - 2026-10-26
|
|
11
24
|
|
|
12
25
|
### Added
|
|
@@ -105,7 +105,13 @@ module StandardId
|
|
|
105
105
|
account: account, value: email, signup_source: EmailPassword::SIGNUP_SOURCE
|
|
106
106
|
)
|
|
107
107
|
password_credential = StandardId::PasswordCredential.create!(login: email, password: password)
|
|
108
|
-
|
|
108
|
+
# Created through the association, not Credential.create!: the
|
|
109
|
+
# has_one's touch: true reads password_credential.credential in
|
|
110
|
+
# after_create, caching nil, so a subscriber walking
|
|
111
|
+
# credential.identifier.account would get nil. Going through the
|
|
112
|
+
# association leaves the whole chain loaded in memory, which also
|
|
113
|
+
# keeps strict-loading hosts from lazily loading identifier/account.
|
|
114
|
+
password_credential.create_credential!(identifier: identifier)
|
|
109
115
|
|
|
110
116
|
StandardId::Events.publish(
|
|
111
117
|
StandardId::Events::ACCOUNT_CREATED,
|
data/lib/standard_id/version.rb
CHANGED