Skip to content

[FEATURE REQUEST] Connect vanilla app to Kiteworks servers using no client secret #4588

Closed

Description

@joragua

Try to integrate ownCloud vanilla app to Kiteworks servers using no client secret.

In this case, PKCE has to be used as a security measurement because the client secret is not available.

TASKS

  • Research (if needed)
  • Create branch feature/kiteworks_integration_without_client_secret
  • Development tasks
    • Check if /status.php request is not reachable and use /kwdav/status.php instead
    • Check if productName has the value kiteworks
    • Add /kwdav prefix before each request except /.well-known and /oauth/token requests
    • Use PKCE when client-secret is not available
    • Implement unit tests (if needed)
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch feature/kiteworks_integration_without_client_secret into master

Activity

  1. changed the title [-]Connect vanilla app to Kws servers using no client secret[/-] [+][FEATURE REQUEST] Connect vanilla app to Kws servers using no client secret[/+] on May 29, 2025
  2. self-assigned this
    on May 29, 2025
  3. joragua commented on Jun 4, 2025

    @joragua
    MemberAuthor
    • PKCE is used by default in oC Android app
    • setup.xml file must be modified in order to connect to Kiteworks servers
    • There are some file operations that are not supported yet (we will open a new issue to integrate them)

    Steps to establish connection to Kiteworks servers:

    1. Check if /status.php fails and use /kwdav/status.php instead
    2. Check if productname, included in the response, has the value kiteworks
    3. Set isKiteworksServer variable to true in OwnCloudClient (the network client)
    4. Add /kwdav prefix before each request except /.well-known and /oauth/token requests

    When the token expires there are some additional steps to take into account:

    1. If the token has expired, the request returns 401. That error is handled in ConnectionValidator.kt
    2. Check if /kwdav/status.php fails
    3. Check if /kwdav/dav/files fails. If it is a Kiteworks server, this request always returns 404 because there is no personal space. So in this case, there is an additional condition to refresh the token: check if the server is from Kiteworks instead of checking if the status request is unauthorized.

    NOTE: In oC servers, when the token has expired, all requests return 401.

  4. changed the title [-][FEATURE REQUEST] Connect vanilla app to Kws servers using no client secret[/-] [+][FEATURE REQUEST] Connect vanilla app to Kiteworks servers using no client secret[/+] on Jun 4, 2025
  5. added this to the 4.6 - Current milestone on Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions