Repository navigation
Custom Header: Per account - #59
Conversation
|
@markrosan8 FYI ^ |
|
@guruz do you have a testflight build with this? Happy to test. |
|
Will do that and ping you today/tomorrow @m8426 |
305fd4a to
0cb3ba7
Compare
Waiting for review by Apple |
|
@guruz any updates on the build? still stuck at review? |
|
Yes, just checked. This is very strange, normally Testflight reviews go through very quickly |
|
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. |
|
Still nothing. Maybe I should re-create the build and push it to testflight again |
|
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. |
|
1.2.3 should be out now for rtesting? |
FYI @paolostivanin |
|
@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. |
|
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 I'm happy to be proven wrong. |
|
@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 |
|
Not sure I understand it.. does the app still need changes for custom cookies or not? |
|
i think 1.2.3 can be shipped, everything else works well, and mobile office editing is not the highest priority anyways |
|
Any chance this will be coming to the Android app as well? |
|
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? |
|
@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. |
|
@jorbrock Could you try 1.2.6 from testflight? I added fields for two more headers. |
|
@jorbrock Any news? :) |
|
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! |
|
@jorbrock Awesome! |
|
@jorbrock Could you have a quick look at #92 (comment) and see if you experience the same thing? |


@markrosan8