Skip to content

Add AppConfig Support for MDM Managed Configurations#6381

Open
ManfredWisniewski wants to merge 9 commits into
nextcloud:masterfrom
ManfredWisniewski:AppConfig-configuration
Open

Add AppConfig Support for MDM Managed Configurations#6381
ManfredWisniewski wants to merge 9 commits into
nextcloud:masterfrom
ManfredWisniewski:AppConfig-configuration

Conversation

@ManfredWisniewski

Copy link
Copy Markdown

AppConfig Support

  • AppConfigManager now exposes managed username and app-password keys alongside the server URL for reuse by dependent
  • ServerSelectionActivity pre-fills the managed base URL on first launch and, after capability checks, bypasses browser login when managed credentials are present, handing them directly to account
  • Declared the username and app-password restrictions in app_restrictions.xml so MDM providers can supply them via managed configuration.

🚧 TODO

  • Also implement these changes for the Nextcloud App

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
    Manual Testing of the MDM support was done with Samsung KNOX Manage platform.
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI
    Changes proposed in this PR were created with the help of GPT-5-Codex.
    Building and testing the App in Android Studio was supported by Gemini.

@mahibi

mahibi commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Hi @ManfredWisniewski
thank you for contributing. We will have a closer look at the Pull request soon.

@mahibi

mahibi commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

review is planned for next week

@ManfredWisniewski

ManfredWisniewski commented Jul 2, 2026

Copy link
Copy Markdown
Author

review is planned for next week

Thank you very much!
Sorry for not adhering to the DCO rules. I have changed my setting to always add a sign-off line to the commits in the future.
As this is really a minor change that does not (should not) interfere with any other functionalities I hope these changes can be added without this detail.

@mahibi

mahibi commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Thank you very much! Sorry for not adhering to the DCO rules. I have changed my setting to always add a sign-off line to the commits in the future. As this is really a minor change that does not (should not) interfere with any other functionalities I hope these changes can be added without this detail.

Unfortunately adding the DCO is mandatory for contributions. The page https://github.com/nextcloud/talk-android/pull/6381/checks?check_run_id=84788643278 describes how the commits can be signed.
Basically it's just these 2 commands to sign your 9 commits:

  • In your local branch, run:
    git rebase HEAD~9 --signoff
  • Force push your changes to overwrite the branch:
    git push --force-with-lease origin AppConfig-configuration

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