Jake Fink
54cf3de11b
[EC-284] Prevent duplicate organization invites ( #2113 )
...
* prevent duplicate organization invites with test
* formatting
2022-07-13 09:21:28 -04:00
Federico Maccaroni
ddd3e47df5
Update GlobalSettings.cs ( #2112 )
2022-07-11 18:31:08 -03:00
Federico Maccaroni
5ba988ebd8
[EC-309] Change Device Verification default global setting value to false ( #2106 )
...
* EC-309 Change device verification default global setting value to false
* Update src/Core/Settings/GlobalSettings.cs
Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
2022-07-11 18:23:31 -03:00
Thomas Avery
b60357eee9
Fixing missed email template ( #2099 )
2022-07-11 12:45:55 -05:00
Brandon Maharaj
0a334cc928
[SG-199] Move MP hint to MP change form ( #2080 )
...
* chore: backend changes
* fixed: test
* fix: lint
2022-07-11 09:28:14 -04:00
Gbubemi Smith
e9a88b5505
made the get plans endpoint anonymous ( #2107 )
2022-07-08 17:40:36 +01:00
Federico Maccaroni
580987f0e5
EC-293 Fix device verification state when getting its settings ( #2094 )
2022-07-05 18:44:07 -03:00
Oscar Hinton
45a005d652
Fix failing tests ( #2095 )
2022-07-05 18:39:43 +02:00
Oscar Hinton
113627dcd5
Add Swagger generation for Identity ( #2058 )
2022-07-04 12:05:46 +02:00
Justin Baur
1a89056c61
Create new file when adding license file and updating ( #2092 )
2022-06-30 12:19:15 -04:00
Justin Baur
231eb84e69
Turn On ImplicitUsings
( #2079 )
...
* Turn on ImplicitUsings
* Fix formatting
* Run linter
2022-06-29 19:46:41 -04:00
Justin Baur
890e6bb48a
Add Seats to Org note ( #2086 )
2022-06-29 06:34:34 -04:00
Justin Baur
cc21a04801
Address Analyzer Warnings ( #2078 )
...
* Address potential errors
* Add tests
* Add clarity
* Run formatting
2022-06-28 12:17:14 -04:00
Brandon Maharaj
9ff071e926
[SG-357] Update email text to reflect EUVR updates ( #2073 )
...
* fix: made text changes
* chore: html changes
2022-06-28 11:52:49 -04:00
Addison Beck
fe062dc987
[fix] Payment Failed webhook fix ( #2076 )
2022-06-24 17:20:32 -04:00
Addison Beck
75ab5826e0
[fix] Only cancel premium subscriptions after failed payments ( #2075 )
2022-06-24 15:17:58 -04:00
Justin Baur
daeaa42851
[PS-40] Upgrade to .NET 6 ( #2056 )
...
* Bump to .NET 6
* Update Docker images
* Update docs
* Update workflow for linter
* Add all common versions to props file
* Update tools manifest
* Update csproj files
* Update packages.lock.json files
* Switch to setup-dotnet
* Remove msbuild
* Fix deps breaking changes
* Manually install msbuild
* Use msbuild for build
* Fix verbosity switch
* Remove unused exceptions
* Address linter feedback
* Make Obsolete warnings suggestions for now.
* Force Evaluate
* Format on tests
* Run formatting again.
* Use windows 2022
* force evaluate
* Fix restore
* Fix linter
* Skip test
* Update Directory.Build.props
Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
* Address PR feedback
* Add IntegationTest for Rate limiter
* Fix test
* Reenable test
* Reorder test
* Skip test again
* Add tracking link
* Update .github/workflows/build.yml
Co-authored-by: Micaiah Martin <77340197+mimartin12@users.noreply.github.com>
Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
Co-authored-by: Micaiah Martin <77340197+mimartin12@users.noreply.github.com>
2022-06-24 10:39:34 -04:00
Thomas Avery
b8d41b47f1
[PS-794] Fix password reset email templates email format ( #2068 )
...
* Fix password reset email templates email format
2022-06-23 10:44:41 -05:00
Justin Baur
94059a2b06
Fix OrganizationConnection Update ( #2071 )
...
* Force CloudOrganizationId to be read only
* Fix tests
2022-06-23 07:50:10 -04:00
Matt Gibson
d918f5aae3
Check for ascii-only in entire local part of emails ( #2072 )
2022-06-22 17:51:16 -05:00
Robyn MacCallum
f2a02e040c
[SG-378] Get and send collectionIds when a cipher is updated ( #2066 )
...
* Get and send collectionIds when a cipher is updated
* Make Put method parameters Guids instead of strings
2022-06-21 08:25:54 -04:00
Thomas Avery
b19cded4f8
[PS-721] Left align all email template text ( #2033 )
...
Make all email template text left-aligned, excluding call-to-actions buttons which should remain centered
In the emails needing updates, remove font styling from HTML tags other than <td> and <p>
Add an additional margin above and below each call-to-action button
For emails that include only the “ignore” warning below the call-to-action button move the warning up, so the button is the last item displayed
Fix the unit test that allows developers to locally generate test emails
2022-06-20 09:20:28 -05:00
André Filipe da Silva Bispo
904193560c
[PS-293] Update admin portal to use the new version.json ( #2006 )
...
* PS-293: Get latest version no comes from GitHub instead of DockerHub.
* PS-293: format fixes
* PS-293: code refactor and clean up
* PS-293: deserialization to class, argument typification.
* PS-293: formating fix
* PS-293: Moved ProjectType to HomeController
* PS-293: updated version endpoint to CDN
* PS-293: Update endpoint to CF protected
2022-06-20 12:53:09 +01:00
Chad Scharf
ee5946c4b9
EC-262 - add missing validation on deactivate ( #2064 )
2022-06-17 11:04:25 -04:00
Thomas Rittson
3360d40592
[EC-243] Grant premium status when member accepts org invite ( #2043 )
2022-06-17 06:30:50 +10:00
Chad Scharf
b2a0aa2860
EC-262 - implement org user deactivated flag and behavior server ( #2050 )
...
* SM-47 - Add Disabled status to enum + schema
* SM-47 - Enable and disable sprocs and repositories
* SM-47 - Organization service enble/disable user
* SM-47 - Fix lint errors
* SM-47 - add disable/enable endpoints to API
* SM-47 - Add bulk operations for enable/disable
* SM-47 - Fix linting errors, one of these days I'll do this first
* SM-47 - Codesense fix DRY warnings
* EC-262 - Code review changes, async cleanup
* EC-262 - Fix build issues, async refs
* EC-262 - Update controller param types
* EC-262 - Ensure mutable state is correct
* EC-262 - rename disabled to deactivated
2022-06-16 15:59:57 -04:00
Gbubemi Smith
8e79c20dce
[SG-72] Sync changed email address with stripe ( #2042 )
...
* sync changed email address with strip
* sync changed email address with strip
* fixed formatting
* throw exception if not successful
* Added revert if stripe sync fails
* Added revert if stripe sync fails
* Added revert if stripe sync fails
* created stripe sync service
* fixed lint issue
* reverted to use stripe exception message
* added null checks to customer id and email address
* added braces
* removed empty email
2022-06-16 17:45:26 +01:00
Thomas Rittson
b39a43210d
[EC-235] Reapply permissions fix for Admin cipher endpoint ( #2061 )
...
* Reapply fix from PR 2036, accidentally clobbered by PR 2022
2022-06-15 12:47:36 +10:00
Robyn MacCallum
d626174f7e
Fix null collectionIds after live-syncing a cipher ( #2057 )
2022-06-13 13:50:44 -04:00
Justin Baur
46b4207ab6
[PS-899] Fix unawaited Task
( #2055 )
...
* Fix unawaited task and switch to Guid parameters
* Remove whitespace
* Formatting
* Fix unwanted Assert
2022-06-13 11:18:53 -04:00
Federico Maccaroni
e3699156de
[PS-589] Fix DeviceUnknownVerification User_Update proc ( #2041 )
...
* PS-589 Fix 2022-05-24_00_DeviceUnknownVerification User_Update proc to remove the NULL and set the default value
* PS-589 updated stored procedures on Sql project to have UnknownDeviceVerificationEnabled with default 1 instead of NULL
2022-06-13 16:42:24 +02:00
Matt Gibson
9ff82ab176
Use the correct policy enum type ( #2045 )
...
Explicit conversion from non-generics to generics doesn't seem to work
here, so I moved to using the read methods already on base Policy.
2022-06-09 18:57:56 -05:00
Dan Poltawski
65ac9a527f
Fix bitwarden typo in API URI ( #2044 )
2022-06-09 12:21:55 -04:00
Matt Gibson
ef403b4362
[PS-616] [PS-795] Fix/auto enroll master password reset without user verification ( #2038 )
...
* Fix parameter name to match entity
* Deserialize policy data in object
* Add policy with config type to fixtures
* Return policy with deserialized config
* Use CoreHelper serializers
* Add master password reset on accept request
* Simplify policy data parsing
* Linter
2022-06-08 08:44:28 -05:00
Drank Sinatra
194b76c13d
Add Spanish version of healthcare.gov ( #2040 )
...
The site for USA government health insurance has a separate base domain in Spanish.
2022-06-07 21:39:18 +02:00
Gbubemi Smith
64edad8f49
[PS-165] Missing copy verification code ( #2022 )
...
* Made changes to organization details endpoint
* Fixed formatting
* Added script to utils directory
2022-06-07 16:52:07 +01:00
Chad Scharf
60a167f2b7
Update swashbuckle for swaggerUI ( #2039 )
2022-06-07 10:11:18 -04:00
thericle
496c9a5d50
protonmail.com domain has been replaced by proton.me ( #2034 )
...
* protonmail.com domain has been replaced by proton.me
Protonvpn.com is still in use so there is still a need for equivalent domains for Proton.
* Update StaticStore.cs
2022-06-06 21:06:58 -04:00
Thomas Rittson
f602df2eb9
[EC-235] Give Admins (and above) access to all items ( #2036 )
2022-06-07 10:33:39 +10:00
Federico Maccaroni
b070e9a387
[PS-589] Fix emergency contact takeover device verification and endpoints for its settings ( #2016 )
...
* Added UnknownDeviceVerificationEnabled on User that is turned off when emergency contact takes over the account. Also added endpoints to get and update 2fa device verification settings. And Updated migrations & tests
* Applied dotnet format
* Fixed method rename call on TwoFactorController
* PS-589 Format fixes
* PS-589 changed UnknownDeviceVerificationEnabled to be non-nullable
2022-06-06 14:52:50 -03:00
Carlos J. Muentes
14302efa2c
CSA-2 - Require user interaction for SSO redirect ( #1948 )
...
* CSA-2 - adding validation before redirecting for SSO login
* Updating server to use generated and signed JWT for SSO redirect
* Removing erroneous file
* Removing erroneous file
* Updating for PR feedback, adding domain_hint to Login and fixing invalid domain_hint name reference
* Some code styling changes from PR feedback
* Removing unnecessary JSON serialization
* Couple small changes from PR feedback
* Fixing linting errors
* Update formatting in AccountController.cs
* Remove unused dependency
* Add token lifetime to settings
* Use tokenable directly
* Return defined models
* Revert sso proj file changes
* Check expiration validity when validating org
* Show error message with expired token
* Formatting fixes
* Add SsoTokenLifetime to Sso settings
* Fix build errors
* Fix sql warnings
Co-authored-by: Carlos J. Muentes <cmuentes@bitwarden.com>
Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>
Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
2022-06-01 12:23:52 -05:00
Thomas Avery
c27645265c
Fix Master Password Hint Email template ( #2019 )
2022-06-01 11:05:08 -05:00
Daniel James Smith
610be2cdcc
[EC-144] Fix stripe revert logic ( #2014 )
...
* Revert scaling by previous value
* Throw is Stripe subscription revert fails
* Remove unused property
* Add null check to accommodate for not existing storage-gb-xxx subscription item
* Use long? instead of Nullable<long>
* Remove redundant try/catch
* Ensure collectionMethod is changed back, even when revertSub fails
Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
2022-05-31 22:55:09 +02:00
Addison Beck
39ba68e66b
[fix] Correct a typo in the event name of a stripe webhook ( #2023 )
2022-05-31 18:08:34 +02:00
Addison Beck
052f760fbb
[fix] Cancel unpaid subscriptions ( #2017 )
...
* [refactor] Create a static class for documenting handled stripe webhooks
* [fix] Cancel unpaid subscriptions after 4 failed payments
2022-05-31 10:55:56 -04:00
Kyle Spearrin
810b653915
log captcha response info ( #2018 )
...
* log captcha response info
* wrap in isBot condition
2022-05-26 14:33:02 -04:00
Thomas Avery
11b6e5d21d
Fix for displaying email address in email template ( #2015 )
2022-05-25 11:42:34 -05:00
Justin Baur
f235938c41
Change OrgUser Delete Behavior ( #2010 )
...
* Fix OrgUserDelete sprocs
* Update Sqlproj
2022-05-23 15:50:54 -04:00
Thomas Avery
0c925f92c9
Fix port number for vs profile Api-SelfHost ( #2011 )
2022-05-23 14:22:04 -05:00
Justin Baur
719abc7e61
[BEEEP] Integration tests ( #1945 )
...
* Add api integration tests
* Add some stuff
* Make program mockable
* Work on IntegrationTests for Identity
* Formatting
* Update packages.lock.json
* Update more packages.lock.json
* Update all packages.lock.json
* Fix InMemory configuration
* Actually fix test configuration
* Fix tests for CI
* Fix event service
* Force EF EventRepository
* Add client_credentials test
* Remove Api.IntegrationTest
* Remove Api Program changes
* Cleanup
* Add more Auth-Email tests
* Run formatting
* Address some PR feedback
* Move integration stuff to it's own common project
* Ran linter
* Add shared project to test solution
* Remove sln changes
* Clean usings
* Add more coverage
* Address PR feedback
2022-05-20 15:24:59 -04:00