Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(nextcloud): Add support for password_policy #2732

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
1 change: 1 addition & 0 deletions packages/nextcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ For an example checkout the [example](https://github.com/nextcloud/neon/blob/mai
| [News app](https://github.com/nextcloud/news) | 25 - 25.1 |
| [Notes app](https://github.com/nextcloud/notes) | 4.8 - 4.11 |
| [Notifications app](https://github.com/nextcloud/notifications) | 28 - 30 |
| [Password Policy app](https://github.com/nextcloud/password_policy) | 28 - 30 |
| [Talk app](https://github.com/nextcloud/spreed) | 18 - 20.1 |
| [Tables app](https://github.com/nextcloud/tables) | 0.6 - 0.8 |
| [NextPush app](https://codeberg.org/NextPush/uppush) | 1.4 - 2.1 |
Expand Down
2 changes: 2 additions & 0 deletions packages/nextcloud/generate_support_table.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ final labels = <String, String>{
'news': '[News app](https://github.com/nextcloud/news)',
'notes': '[Notes app](https://github.com/nextcloud/notes)',
'notifications': '[Notifications app](https://github.com/nextcloud/notifications)',
'password_policy': '[Password Policy app](https://github.com/nextcloud/password_policy)',
'spreed': '[Talk app](https://github.com/nextcloud/spreed)',
'tables': '[Tables app](https://github.com/nextcloud/tables)',
'uppush': '[NextPush app](https://codeberg.org/NextPush/uppush)',
Expand All @@ -36,6 +37,7 @@ void main() {
}

support['notifications'] = support['server']!;
support['password_policy'] = support['server']!;

support = Map.fromEntries(
support.entries.sorted((a, b) {
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