Skip to content

Releases: bvdcode/EasyExtensions

Release 3.0.49

25 Feb 22:46

Choose a tag to compare

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

25 Feb 17:59

Choose a tag to compare

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

24 Feb 18:51

Choose a tag to compare

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

24 Feb 18:41

Choose a tag to compare

Merge branch 'main' of https://github.com/bvdcode/EasyExtensions

Release 3.0.45

18 Feb 05:46

Choose a tag to compare

Merge branch 'main' of https://github.com/bvdcode/EasyExtensions

Release 3.0.44

16 Feb 18:27

Choose a tag to compare

Merge branch 'main' of https://github.com/bvdcode/EasyExtensions

Release 3.0.43

11 Feb 05:55

Choose a tag to compare

Merge branch 'main' of https://github.com/bvdcode/EasyExtensions

Release 3.0.42

10 Feb 19:59

Choose a tag to compare

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

27 Jan 19:43

Choose a tag to compare

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

27 Jan 17:50

Choose a tag to compare

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.