Skip to content

Custom Header: Per account - #59

Merged
guruz merged 2 commits into
mainfrom
markus/per-account-http-header
Jun 12, 2026
Merged

guruz merged 2 commits into
mainfrom
markus/per-account-http-header

Conversation

@guruz

@guruz guruz commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

@guruz guruz mentioned this pull request Jun 1, 2026
3 of 9 tasks
@guruz

guruz commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator Author

@markrosan8 FYI ^

@m8426

m8426 commented Jun 3, 2026

Copy link
Copy Markdown

@guruz do you have a testflight build with this? Happy to test.

@guruz

guruz commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator Author

Will do that and ping you today/tomorrow @m8426

@guruz
guruz force-pushed the markus/per-account-http-header branch from 305fd4a to 0cb3ba7 Compare June 4, 2026 16:32
@guruz

guruz commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator Author

@guruz do you have a testflight build with this? Happy to test.

Waiting for review by Apple

@m8426

m8426 commented Jun 7, 2026

Copy link
Copy Markdown

@guruz any updates on the build? still stuck at review?

@guruz

guruz commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator Author

Yes, just checked. This is very strange, normally Testflight reviews go through very quickly

@guruz

guruz commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator Author

In any case, this is the link https://testflight.apple.com/join/2F5wWTGV

You need to wait until apple approves v1.2.3

v.1.2.2 does not have it yet.

@guruz

guruz commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator Author

Still nothing. Maybe I should re-create the build and push it to testflight again

@m8426

m8426 commented Jun 8, 2026

Copy link
Copy Markdown

Hmm very odd. Maybe you can push a new build on 1.2.2? I think only the first build per version is reviewed. But I may be wrong.

@guruz

guruz commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

1.2.3 should be out now for rtesting?

@guruz

guruz commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author
D031CD34-B1A8-43C4-B5EB-7CF1D7B48F70_1_102_o 995483DE-28A2-4842-9A27-4D75AE9455A6_1_102_o

FYI @paolostivanin
The TLS cert stuff is a no-op still.

@m8426

m8426 commented Jun 9, 2026

Copy link
Copy Markdown

@guruz just tested it,

it works well for nearly everything, except when you hold and click “open in collabora online” for office docs. i assume it’s using wkwebview or something for that feature, so the custom http stack doesn’t get applied there? haven’t had a chance to look through the code yet.

but otherwise the headers work well with my auth proxy. great work. only thing that might be needed for some is multiple header support.

@guruz

guruz commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator Author

I researched this and think it's not possible/feasible. I didn't actually try it.

The header can only be attached to the initial request/page. (this part is not done yet)
But any sub images, stylesheets etc won't have it and apparantly it can't be added for those :/

@guruz
guruz merged commit 5f3e281 into main Jun 12, 2026
1 check passed
@guruz
guruz deleted the markus/per-account-http-header branch June 12, 2026 12:15
@guruz

guruz commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator Author

^ but I'm happy to be proven wrong.

@m8426

m8426 commented Jun 15, 2026

Copy link
Copy Markdown

@guruz you're right that there's no way to add headers to a wkwebview session reliably across all requests

i did find a more elegant solution though, we can just stick the header into a cookie and inject that into the session. it maps cleanly from header name/value to cookie name/value. it will require the edge auth proxy to accept either header or cookie values, but this should be trivial (in traefik its very simple).

this is also very timely. eurooffice is supposedly removing the mobile editing gate, so mobile editing is much more usable in theory than the current desktop on mobile experience that onlyoffice forces.

however, this custom header stuff is all mostly moot if mTLS is implemented. i think it sidesteps the whole "open in" issue, might be worth pushing that forwarding instead of patching the header implementation

@guruz

guruz commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator Author

Not sure I understand it.. does the app still need changes for custom cookies or not?

@m8426

m8426 commented Jun 15, 2026

Copy link
Copy Markdown

i think 1.2.3 can be shipped, everything else works well, and mobile office editing is not the highest priority anyways

@ccerv012

Copy link
Copy Markdown

Any chance this will be coming to the Android app as well?

@jorbrock

Copy link
Copy Markdown

From the looks of things we can only add one header key/value pair? Most services that would be utilized by this (e.g. Cloudflare) require multiple headers. Unless I'm just missing something from the UI?

@guruz

guruz commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator Author

@jorbrock How many headers do you need? :)

Is there a documentation or blog post somewhere regarding OpenCloud via Cloudflare?

@jorbrock

Copy link
Copy Markdown

@jorbrock How many headers do you need? :)

Is there a documentation or blog post somewhere regarding OpenCloud via Cloudflare?

@guruz with cloudflare cf tokens it would be two (CF-Access-Client-Id and CF-Access-Client-Secret): https://developers.cloudflare.com/cloudflare-one/access-controls/service-credentials/service-tokens/

But most other services that allow custom headers (e.g. Immich) have UI controls that allow you to add as many as needed to an array.

guruz added a commit to opencloud-eu/ios-sdk that referenced this pull request Oct 15, 2026
@guruz

guruz commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator Author

@jorbrock Could you try 1.2.6 from testflight? I added fields for two more headers.
(No fancy UI for arbitary amount, sorry).

https://testflight.apple.com/join/2F5wWTGV

guruz added a commit that referenced this pull request Oct 22, 2026
@guruz

guruz commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator Author

@jorbrock Any news? :)

@jorbrock

Copy link
Copy Markdown

Hey @guruz, sorry life got busy for a week or so. I did get to test it tonight, good news, it worked perfectly! Cloudflare zero trust setup with the two headers allowed me to get full use of the app. Thanks for the quick implementation!

@guruz

guruz commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator Author

@jorbrock Awesome!

@guruz

guruz commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator Author

@jorbrock Could you have a quick look at #92 (comment) and see if you experience the same thing?

guruz added a commit to opencloud-eu/ios-sdk that referenced this pull request Oct 29, 2026
guruz added a commit that referenced this pull request Oct 29, 2026
guruz added a commit that referenced this pull request Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants