1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-15 15:30:49 -05:00

8 Commits

Author SHA1 Message Date
Conner Turnbull
10ed9aa1b3
Moved the remaining methods out of BaseLicense. Renamed GetDataBytes to ToByteArray 2025-06-09 15:35:42 -04:00
Conner Turnbull
b8f26cbe60
Moved VerifySignature out of the licenses and into an extension method 2025-06-09 15:15:54 -04:00
Conner Turnbull
0a4dad6c3d
Moved ComputeHash out of the licenses and into an extension method 2025-06-09 15:09:33 -04:00
Conner Turnbull
a4a9af9863
Updated expiration, refresh, and isTrial logic to ensure it matches the original logic 2025-06-06 14:19:52 -04:00
Conner Turnbull
eefc1a2e58
Updated LicenseIgnore to target Signature instead of Hash 2025-06-05 15:26:35 -04:00
Conner Turnbull
598259a785
Moved expires/refresh/trial methods to extension methods to be reused later 2025-06-05 15:26:35 -04:00
Conner Turnbull
ede86fea1f
Extracted the core logic of GetDataBytes to be shared between both files 2025-06-05 15:26:35 -04:00
Conner Turnbull
04cf513d78
[PM-11516] Initial license file refactor (#5002)
* Added the ability to create a JWT on an organization license that contains all license properties as claims

* Added the ability to create a JWT on a user license that contains all license properties as claims

* Added ability to consume JWT licenses

* Resolved generic type issues when getting claim value

* Now validating the jwt signature, exp, and iat

* Moved creation of ClaimsPrincipal outside of licenses given dependecy on cert

* Ran dotnet format. Resolved identity error

* Updated claim types to use string constants

* Updated jwt expires to be one year

* Fixed bug requiring email verification to be on the token

* dotnet format

* Patch build process

---------

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
2024-12-05 14:31:14 +00:00