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

13 Commits

Author SHA1 Message Date
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
21e850de67
Removed SignatureBytes since it had only one usage 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
Justin Baur
7f5f010e1e
Run formatting (#2230) 2022-08-29 16:06:55 -04:00
Justin Baur
bae03feffe
Revert filescoped (#2227)
* Revert "Add git blame entry (#2226)"

This reverts commit 239286737d15cb84a893703ee5a8b33a2d67ad3d.

* Revert "Turn on file scoped namespaces (#2225)"

This reverts commit 34fb4cca2aa78deb84d4cbc359992a7c6bba7ea5.
2022-08-29 15:53:48 -04:00
Justin Baur
34fb4cca2a
Turn on file scoped namespaces (#2225) 2022-08-29 14:53:16 -04:00
Justin Baur
231eb84e69
Turn On ImplicitUsings (#2079)
* Turn on ImplicitUsings

* Fix formatting

* Run linter
2022-06-29 19:46:41 -04:00
Kyle Spearrin
d9cd7880a6 license hash 2017-08-16 15:16:56 -04:00
Kyle Spearrin
b1443b4f94 added refresh date to license files 2017-08-15 14:58:17 -04:00
Kyle Spearrin
9c254a7325 more premium licensing 2017-08-11 22:55:25 -04:00
Kyle Spearrin
a1d064ed9e license verification services for user/org 2017-08-09 17:01:37 -04:00