Skip to content

Commit

Permalink
feat(nextcloud): Add support for password_policy
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Dec 22, 2024
1 parent 3f3efcd commit 232ebc4
Show file tree
Hide file tree
Showing 21 changed files with 4,137 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@
[submodule "external/emoji-metadata"]
path = external/emoji-metadata
url = https://github.com/googlefonts/emoji-metadata
[submodule "external/nextcloud-password_policy"]
path = external/nextcloud-password_policy
url = https://github.com/nextcloud/password_policy.git
1 change: 1 addition & 0 deletions external/nextcloud-password_policy
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ core.OcsGetCapabilitiesResponseApplicationJson_Ocs_Data buildCapabilities(core.S
filesVersionsCapabilities: null,
notesCapabilities: null,
notificationsCapabilities: null,
passwordPolicyCapabilities: null,
provisioningApiCapabilities: null,
sharebymailCapabilities: null,
spreedCapabilities: null,
Expand Down
1 change: 1 addition & 0 deletions packages/neon_framework/test/apps_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ core.OcsGetCapabilitiesResponseApplicationJson_Ocs_Data buildCapabilities(
filesVersionsCapabilities: null,
notesCapabilities: null,
notificationsCapabilities: capabilities,
passwordPolicyCapabilities: null,
provisioningApiCapabilities: null,
sharebymailCapabilities: null,
spreedCapabilities: null,
Expand Down
1 change: 1 addition & 0 deletions packages/neon_framework/test/dialog_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ void main() {
filesVersionsCapabilities: null,
notesCapabilities: null,
notificationsCapabilities: null,
passwordPolicyCapabilities: null,
provisioningApiCapabilities: null,
sharebymailCapabilities: null,
spreedCapabilities: null,
Expand Down
1 change: 1 addition & 0 deletions packages/neon_framework/test/references_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ core.OcsGetCapabilitiesResponseApplicationJson_Ocs_Data buildCapabilities() =>
filesVersionsCapabilities: null,
notesCapabilities: null,
notificationsCapabilities: null,
passwordPolicyCapabilities: null,
provisioningApiCapabilities: null,
sharebymailCapabilities: null,
spreedCapabilities: null,
Expand Down
1 change: 1 addition & 0 deletions packages/neon_framework/test/weather_status_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ core.OcsGetCapabilitiesResponseApplicationJson_Ocs_Data buildCapabilities({requi
filesVersionsCapabilities: null,
notesCapabilities: null,
notificationsCapabilities: null,
passwordPolicyCapabilities: null,
provisioningApiCapabilities: null,
sharebymailCapabilities: null,
spreedCapabilities: null,
Expand Down
2 changes: 1 addition & 1 deletion packages/nextcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ For an example checkout the [example](https://github.com/nextcloud/neon/blob/mai
[Do not edit manually above]: #

1: Other versions might be supported too or at least mostly working, but we do not test against those.
2: Server includes the following apps: comments, core, dashboard, dav, files, files_external, files_reminders, files_sharing, files_trashbin, files_versions, provisioning_api, settings, sharebymail, systemtags, theming, updatenotification, user_ldap, user_status, weather_status, webhook_listeners and WebDAV.
2: Server includes the following apps: comments, core, dashboard, dav, files, files_external, files_reminders, files_sharing, files_trashbin, files_versions, password_policy, provisioning_api, settings, sharebymail, systemtags, theming, updatenotification, user_ldap, user_status, weather_status, webhook_listeners and WebDAV.

We aim to support all currently maintained server versions and all app versions that support those server versions.
The currently maintained server versions can be found here: https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule.
Expand Down
15 changes: 15 additions & 0 deletions packages/nextcloud/lib/password_policy.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import 'package:nextcloud/src/api/password_policy/password_policy.openapi.dart';
import 'package:nextcloud/src/nextcloud_client.dart';

export 'package:nextcloud/src/api/password_policy/password_policy.openapi.dart';

/// ID for the password_policy app.
const String appID = 'password_policy';

/// Client for the password_policy APIs.
extension PasswordPolicyExtension on NextcloudClient {
static final _passwordPolicy = Expando<$Client>();

/// Client for the password_policy APIs.
$Client get passwordPolicy => _passwordPolicy[this] ??= $Client.fromClient(this);
}
Loading

0 comments on commit 232ebc4

Please sign in to comment.