mirror of https://github.com/abpframework/abp.git
Browse Source
- SetLinkConsentAsync uses FindByIdAsync + null no-op, matching the missing-user behaviour of Get/RemoveLinkConsentAsync. - Decorate Set/Get/RemoveLinkConsentAsync with [UnitOfWork] so the underlying IdentityUserStore.GetTokenAsync can EnsureCollectionLoaded the user.Tokens collection (fixes the CI failure on GetLinkConsentAsync_Should_Return_Null_When_No_Consent_Written). - Clarify LinkUserTokenProvider XML doc to note that the single-active policy is enforced per purpose (matches AbpSingleActiveTokenProvider). - Rename LinkUserTokenProvider_Should_Be_Register to *_Registered for consistency with sibling token-provider tests. - Add tests covering: (a) RemoveLinkUserTokenAsync(purpose) only invalidates the requested purpose, and (b) same-purpose GenerateLink TokenAsync invalidates the previously issued token.pull/25450/head
3 changed files with 57 additions and 3 deletions
Loading…
Reference in new issue