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

[feature/security-first] Add capability control to allow password removal independent of password enforcement #138

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

felix-schwarz
Copy link
Collaborator

@felix-schwarz felix-schwarz commented Feb 5, 2025

Description

  • OCCapabilities: add support for block_password_removal extension of password policy capabilities

A password policy block with that extension would look like:

"password": {
    "enforced_for": {
        "read_only": true,
        "read_write": true,
        "read_write_delete": true,
        "upload_only": true
    },
    "block_password_removal": {
        "read_only": false,
        "read_write": false,
        "read_write_delete": false,
        "upload_only": false
    },
    "enforced": false
},

To fulfill requirements (owncloud/ios-app#1429), the SDK returns a default value of false for all block_password_removal values not found in a server's capabilities.

Related Issue

owncloud/ios-app#1429

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@felix-schwarz felix-schwarz merged commit 2f1ca96 into master Feb 5, 2025
2 checks passed
@DeepDiver1975 DeepDiver1975 deleted the feature/security-first branch February 5, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants