Releases: bvdcode/EasyExtensions
Releases · bvdcode/EasyExtensions
Release 3.0.49
Fix possible null exception in login by using GetValueOrDefault Replaced userId.Value with userId.GetValueOrDefault() in OnUserLoggingInAsync call to prevent potential exceptions when userId is null. This change improves code safety without altering existing logic.
Release 3.0.48
Support access token in cookies and centralize param name Introduce AccessTokenParamName constant to avoid hardcoding the access token parameter name. Update JWT authentication to check for the token in both query string and cookies, improving flexibility and maintainability.
Release 3.0.47
Add XML docs and widen access for token methods Added detailed XML documentation to CreateAccessToken and AddRefreshTokenToCookie in BaseAuthController. Changed their access modifiers from private protected to internal protected for broader accessibility within the assembly. No functional changes were made.
Release 3.0.46
Merge branch 'main' of https://github.com/bvdcode/EasyExtensions
Release 3.0.45
Merge branch 'main' of https://github.com/bvdcode/EasyExtensions
Release 3.0.44
Merge branch 'main' of https://github.com/bvdcode/EasyExtensions
Release 3.0.43
Merge branch 'main' of https://github.com/bvdcode/EasyExtensions
Release 3.0.42
Update NuGet packages and improve UserAgent device parsing Updated Microsoft.* and Sentry.AspNetCore package versions across projects. Added a ToString() override to UserAgentDeviceInfo for better string representation. Refactored TryParseDesktop in UserAgentHelpers for clarity and maintainability.
Release 3.0.41
Add support for custom token claims in BaseAuthController Introduce virtual GetAdditionalTokenClaims method to allow derived controllers to add custom claims to authentication tokens. Update CreateAccessToken to include these claims in JWT generation. Add XML documentation for the new method.
Release 3.0.40
Refactor and extend web API exception classes - Replace AccessException with AccessDeniedException, supporting custom messages and generic type-based usage. - Add generic versions for BadRequest, Duplicate, EntityNotFound, and Unauthorized exceptions. - Allow custom error messages for all exception types. - Improve XML documentation for clarity and consistency. - Enhances flexibility and type safety for API error handling.