1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 08:32:50 -05:00
Commit Graph

5171 Commits

Author SHA1 Message Date
d142af07bf PM-10600: Fix Mobile devices not registering to organization push notifications
We only register devices for organization push notifications when the organization is being created. This does not work, since we have a use case (Notification Center) of delivering notifications to all users of organization. This fixes it, by adding the organization id tag when device registers for push notifications.
2024-11-05 14:59:27 +00:00
cbc1e0ffe4 PM-10600: Fix FeatureService service discoverability error
The `IFeatureService` is scoped service, yet it is provided as non-scoped via service provider. This results in exception on runtime. No Android device can register for push notifications as a result.
2024-11-05 14:52:27 +00:00
89b0848002 Merge branch 'refs/heads/main' into km/pm-10600 2024-10-28 15:55:46 +00:00
cc6e41b42a [deps] DbOps: Update Microsoft.Azure.Cosmos to 3.45.0 (#4949)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-28 10:29:34 -04:00
109ba14cf4 [deps] Tools: Update aws-sdk-net monorepo (#4946)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-28 10:02:40 +01:00
e2a69c432c [deps] Tools: Update LaunchDarkly.ServerSdk to 8.6.0 (#4950)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-28 10:00:33 +01:00
Ike
d0c9953444 [PM-8213] Feature flag for new-device-verification (#4944) 2024-10-26 12:43:27 -04:00
53ad9df003 [PM-13451] Update subscription setup process to support MOE providers (#4937) 2024-10-25 03:56:03 +02:00
6272e84c92 Remove feature flag (#4931)
Co-authored-by: MtnBurrit0 <77340197+mimartin12@users.noreply.github.com>
2024-10-25 10:17:28 +10:00
f43f59e4b4 Register noop notification registration service for self host lacking necessary data (#4939) 2024-10-24 15:45:13 -04:00
9a499df0e7 BRE-344 - Add PR logic to Repository Management workflow (#4938) 2024-10-24 13:15:16 -06:00
Ike
c028c68d9c [PM-6666] Two factor Validator refactor (#4894)
* initial device removal

* Unit Testing

* Finalized tests

* initial commit refactoring two factor

* initial tests

* Unit Tests

* initial device removal

* Unit Testing

* Finalized tests

* initial commit refactoring two factor

* initial tests

* Unit Tests

* Fixing some tests

* renaming and reorganizing

* refactored two factor flows

* fixed a possible issue with object mapping.

* Update TwoFactorAuthenticationValidator.cs

removed unused code
2024-10-24 10:41:25 -07:00
0c346d6070 [PM-10314] Auto-enable Single Org when a Domain is Verified (#4897)
Updated domain verification to auto-enable single org policy.
2024-10-24 10:13:45 -05:00
a128cf1506 [PM-12758] Add managed status to OrganizationUserDetailsResponseModel and OrganizationUserUserDetailsResponse (#4918)
* Refactor OrganizationUsersController.Get to include organization management status of organization users in details endpoint

* Refactor OrganizationUsersController.Get to include organization management status of an individual user in details endpoint

* Remove redundant .ToDictionary()

* Simpify the property xmldoc

* Name tuple variables in OrganizationUsersController.Get

* Name returned tuple objects in GetDetailsByIdWithCollectionsAsync method in OrganizationUserRepository

* Refactor MembersController.Get to destructure tuple returned by GetDetailsByIdWithCollectionsAsync

* Add test for OrganizationUsersController.Get to assert ManagedByOrganization is set accordingly
2024-10-24 15:39:35 +01:00
ff0af7de03 Merge branch 'refs/heads/main' into km/pm-10600 2024-10-24 13:08:46 +01:00
78698859c8 PM-10600: UT coverage 2024-10-24 13:06:48 +01:00
491789bd5a PM-10600: Required attribute, organization group for push notification fix 2024-10-24 13:05:11 +01:00
d38c489443 [PM-13982] [Defect] Can no longer create providers due to foreign key conflict (#4935) 2024-10-24 08:34:27 +02:00
4a1b90db48 Remove bulk-device-approval feature flag definition (#4930) 2024-10-24 08:09:07 +10:00
e6245bbece Auth/PM-12613 - Registration with Email Verification - Provider Invite Flow (#4917)
* PM-12613 - Add RegisterUserViaProviderInviteToken flow (needs manual, unit, and integration tests)

* PM-12613 - RegisterUserCommandTests - test register via provider inv

* PM-12613 - AccountsControllerTests.cs - Add integration test for provider

* PM-12613 - Remove comment

* PM-12613 - Add temp logging to help debug integration test failure in pipeline

* PM-12613 - WebApplicationFactoryBase.cs - add ConfigureServices

* PM-12613 - AccountsControllerTests.cs - refactor test to sidestep encryption

* PM-12613 - Per PR feedback, refactor AccountsController.cs and move token type checking into request model.

* PM-12613 - Remove debug writelines

* PM-12613 - Add RegisterFinishRequestModelTests
2024-10-23 18:06:24 -04:00
a952d10637 [PM-13447] Add Multi Org Enterprise providers to Admin Console (#4920) 2024-10-23 12:10:50 -04:00
39c560bbdd Add generator-tools-modernization feature flag (#4933)
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2024-10-23 12:01:23 -04:00
07ed1e947a PM-10600: Test fix 2024-10-23 15:00:18 +01:00
8ff820de17 PM-10600: Startup fix 2024-10-23 14:29:09 +01:00
f9477118d6 PM-10600: UTs coverage 2024-10-23 14:15:10 +01:00
cf8b91ebcc PM-10600: Small refactor, UTs coverage 2024-10-22 23:52:58 +01:00
ab370a3227 PM-10600: UT coverage 2024-10-22 21:55:05 +01:00
e0d46d2dd3 PM-10600: Sent to organization typo 2024-10-22 21:54:28 +01:00
e9d1052545 Merge branch 'refs/heads/main' into km/pm-10600
# Conflicts:
#	src/Core/NotificationHub/NotificationHubPushNotificationService.cs
#	src/Core/NotificationHub/NotificationHubPushRegistrationService.cs
#	src/Core/Services/Implementations/MultiServicePushNotificationService.cs
2024-10-22 20:51:57 +01:00
dc662183c2 PM-10600: Added DeviceType claim 2024-10-22 19:28:02 +01:00
3035abfa30 PM-10600: Revert global push notifications 2024-10-22 18:27:18 +01:00
724f2ee5e5 Secure inputs (#4927) 2024-10-22 10:29:57 -06:00
bf976706f7 Manage ephemeral configs (#4926)
* Add ephemeral-environment label and cleanup workflow call

* Update workflow call to main

* switch to process.env
2024-10-22 10:24:25 -06:00
f44a59f7a9 Shard notification hub (#4450)
* Allow for binning of comb IDs by date and value

* Introduce notification hub pool

* Replace device type sharding with comb + range sharding

* Fix proxy interface

* Use enumerable services for multiServiceNotificationHub

* Fix push interface usage

* Fix push notification service dependencies

* Fix push notification keys

* Fixup documentation

* Remove deprecated settings

* Fix tests

* PascalCase method names

* Remove unused request model properties

* Remove unused setting

* Improve DateFromComb precision

* Prefer readonly service enumerable

* Pascal case template holes

* Name TryParse methods TryParse

* Apply suggestions from code review

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>

* AllClients is a set of clients and must be deduplicated

* Fix registration start time

* Add logging to initialization of a notification hub

* more logging

* Add lower level logging for hub settings

* Log when connection is resolved

* Improve log message

* Log pushes to notification hub

* temporarily elevate log messages for visibility

* Log in multi-service when relaying to another push service

* Revert to more reasonable logging free of user information

* Fixup merge

Deleting user was extracted to a command in #4803, this updates that work to use just the device ids as I did elsewhere in abd67e8ec

* Do not use bouncy castle exception types

* Add required services for logging

---------

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
Co-authored-by: bnagawiecki <107435978+bnagawiecki@users.noreply.github.com>
2024-10-22 12:20:57 -04:00
00bfcb5fa5 [BRE-101] Remove dept-devops from CODEOWNERS (#4176) 2024-10-22 10:37:43 -04:00
4173fa8e81 PM-10600: Id typos 2024-10-22 14:42:27 +01:00
7e0c0675ff PM-10600: Explicit group names 2024-10-22 11:30:45 +01:00
36c8dfa0b8 PM-10600: Send push notification on notification creation 2024-10-22 11:30:44 +01:00
6296c1fb1f PM-10600: Sending to specific client types for other clients 2024-10-22 11:30:42 +01:00
7020565770 PM-10600: Sending to specific client types for relay push notifications 2024-10-22 11:30:40 +01:00
3a604af0a4 PM-10600: Notification push notification 2024-10-22 11:30:38 +01:00
7b5e0e4a64 [PM-13836] Refactor IPolicyService to remove unnecessary IOrganizationService dependency (#4914) 2024-10-22 10:38:01 +01:00
dfa411131d [PM-13322] [BEEEP] Add PolicyValidators and refactor policy save logic (#4877) 2024-10-22 09:18:34 +10:00
75cc907785 Bump version to 2024.10.1 (#4921) v2024.10.1 2024-10-21 20:55:12 +00:00
a2109175b0 Add self-host eligibility to organization metadata (#4867) 2024-10-21 14:02:21 -04:00
2c4dd3ea12 Fix swap notification commands to use UtcNow (#4919) 2024-10-21 12:10:03 -05:00
f82c0e3742 [PM-10703] Admin Portal Selecting Families plan does not check default features (#4859) 2024-10-21 17:57:18 +02:00
f61a017c17 [PM-13834] Skip providers that have no clients during migration (#4913)
* Skip providers that have no clients during migration

* Remove enabled requirement from migrator
2024-10-21 08:54:15 -04:00
5d15750b80 [PM-13717] Fix legacy credit rebate for migrated MSPs (#4906)
* Fix legacy credit rebate for migrated MSPs

* Run dotnet format
2024-10-21 08:54:06 -04:00
c809794642 [BRE-372] - Clean up document start (#4915) 2024-10-21 13:11:59 +01:00