Skip to content

Multiple custom HTTP headers for connection #92

Closed

Description

@cursed-sparrow

Right now we can add only one custom HTTP header (header name and its associated header value).

Many reverse proxy have authentication method with 2 HTTP headers, for example P-Access-Token-Id and P-Access-Token.

We should be able to define multiple HTTP headers in the client app.

TASKS

  • Research (if needed)
  • Create branch feature/feature_name
  • Development tasks
    • Implement whatever
    • ...
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch feature/feature_name into main

PR

  • App
  • Library (if needed)

Activity

  1. guruz commented on Oct 23, 2026

    @guruz
    Collaborator
  2. moved this from Qualification to Public Testing in OpenCloud Team Boardon Oct 23, 2026
  3. cursed-sparrow commented on Oct 23, 2026

    @cursed-sparrow
    Author

    @guruz

    I tested it and the multiple headers are taken into account in HTTP requests.

    However they are not present on every requests.

    I connected, downloaded one file and uploaded another one. From what I've seen, these HTTP custom headers are present on:

    POST /konnect/v1/token
    GET /ocs/v2.php/cloud/capabilities
    GET /ocs/v2.php/cloud/user
    GET /graph/v1.0/me/drives
    GET /app/list
    GET /remote.php/dav/avatars/eorwel/256.png
    GET /status.php
    PROPFIND /dav/spaces/a4273d20-86b9-4964-ac36-3b022c45e221$360e3274-34fa-416c-b46f-199c7cc2eabf/Photos/
    GET /dav/spaces/a4273d20-86b9-4964-ac36-3b022c45e221$360e3274-34fa-416c-b46f-199c7cc2eabf/Photos/Vincent/IMG-20181026-WA0016.jpg
    

    Not present on :

    PROPFIND /dav/spaces/a4273d20-86b9-4964-ac36-3b022c45e221$360e3274-34fa-416c-b46f-199c7cc2eabf/
    GET /dav/spaces/a4273d20-86b9-4964-ac36-3b022c45e221$360e3274-34fa-416c-b46f-199c7cc2eabf/Photos/Vincent/VID_20181111_191750.mp4
    GET /data
    GET /konnect/v1/userinfo
    GET /konnect/v1/jwks.json
    GET /.well-known/openid-configuration
    

    Therefore for these last blocked queries, it is needed to whitelist these paths in the reverse proxy. I did it and it works. However I'm not sure it is well secured now. Is there a risk to access resources without authenticating with POST /konnect/v1/token?

    @guruz is it expected to not have the HTTP headers on these paths?

  4. guruz commented on Oct 23, 2026

    @guruz
    Collaborator

    pinging @markrosan8 who did the initial implementation in opencloud-eu/ios-sdk@a7e9a28

  5. moved this from Public Testing to In Progress in OpenCloud Team Boardon Oct 23, 2026
  6. self-assigned this
    on Oct 23, 2026
  7. moved this from In Progress to Public Testing in OpenCloud Team Boardon Nov 2, 2026
  8. guruz commented on Nov 2, 2026

    @guruz
    Collaborator

    Not present on

    Unfortunately the web view going to the IDP can't have custom headers.

    Regarding the PROPFIND and the mp4 GET: Did you do this through another app, like Files.app?
    I think this is a cache invalidation issue. if you kill the Files app it should have the (newly set) values....hmmmmm.
    I guess you can't reproduce this anymore now?

  9. guruz commented on Nov 11, 2026

    @guruz
    Collaborator

    The temporary glitch in File Provider when adding headers should be fetched in 1.2.7 testflight

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

  10. moved this from Public Testing to Done in OpenCloud Team Boardon Nov 16, 2026
  11. closed this as completedby moving to Done in OpenCloud Team Boardon Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions