Repository navigation
[feature/mtls-client-certificates] TLS client certificate (mTLS) support - #1606
Closed
bunducdragos wants to merge 1 commit into
Closed
bunducdragos wants to merge 1 commit into
bunducdragos wants to merge 1 commit into
Conversation
- Import a PKCS#12 (.p12/.pfx) file + password from the "Server URL" setup step and the account editor (new "Client Certificate" section); show the certificate's name and expiry, replace or remove it (ClientCertificateManager in ownCloudAppShared) - MutualTLSBrowserSession: WKWebView-based OAuth2/OIDC browser session, used when a client certificate is stored for the authorization URL's host (ASWebAuthenticationSession can't present app-provided certificates) - ClientWebAppViewController: answer client certificate challenges for web apps - MediaDisplayViewController: answer client certificate challenges when streaming via AVAssetResourceLoaderDelegate - Localizable.xcstrings: add new strings with German translations - ios-sdk: switch to the mTLS branch, based on current ios-sdk master (adds OCClientIdentityStore and the pipeline/OAuth2 changes) Fixes owncloud/ios-sdk#11 Co-Authored-By: Claude Opus 5.5 <[email protected]>
4 of 8 tasks
Author
|
Superseded by #1607 (this PR stopped syncing with its branch during today's GitHub outage and couldn't be reopened). |
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds TLS client certificate (mutual TLS) support to the app, building on the SDK changes in owncloud/ios-sdk#180.
Import / manage: a PKCS#12 (
.p12/.pfx) file plus its password can be imported from two places:The certificate's name and expiry are shown, and it can be replaced or removed. The shared UI lives in
ClientCertificateManager(ownCloudAppShared).Storage / networking: handled by the SDK's new
OCClientIdentityStoreandOCHTTPPipelinechanges. Identities live in the shared keychain access group, so the File Provider, Share, Action and Intents extensions present the certificate too. A certificate is only presented to the host it was imported for.OAuth2 / OIDC login:
ASWebAuthenticationSessioncan't present client certificates provided by the app. When a certificate is stored for the authorization URL's host, the newMutualTLSBrowserSession(WKWebView-based, non-persistent data store, intercepts the callback scheme) is used instead. It is registered viaOCAuthenticationMethodOAuth2.mutualTLSBrowserSessionClass.Other HTTP stacks:
ClientWebAppViewController(web office apps) answers client certificate challenges for the stored host. Media streaming (AVURLAsset) gets anAVAssetResourceLoaderDelegatethat does the same.Localization: new strings added to
Localizable.xcstrings, with German translations.ios-sdk: moves to the SDK PR's commit, which is based on the current ios-sdk
master. That also picks up [fix/kw-bridge-interop] Fix KW bridge/IDP interoperability issues ios-sdk#174.Related Issue
owncloud/ios-sdk#11
SDK PR: owncloud/ios-sdk#180
Motivation and Context
Self-hosted instances are often put behind a reverse proxy that requires a client certificate (
ssl_verify_client on/SSLVerifyClient require). Until now the iOS app couldn't connect to them at all.How Has This Been Tested?
.p12from the setup stepownCloudAppTestson an iOS 26.3 simulator: 11/11 pass.ClientIdentityStoreTests, see SDK PR) pass.Not tested: OIDC login through
MutualTLSBrowserSessionagainst a real IdP, backgroundURLSessiontransfers while the app is suspended, andAVFoundationdelivering client certificate challenges to the resource loader delegate.Note: CI checks out
ios-sdkfromowncloud/ios-sdk, so the build will only find the new submodule commit once the SDK PR is merged. Until then, the commit is onbunducdragos/ios-sdk(branchfeature/mtls-client-certificates).Types of changes
Checklist:
🤖 Generated with Claude Code