Skip to content

Conversation

@JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Sep 22, 2025

As authenticated user in a password protected public link context, the makeRequest method of the useRequest composable should use the password for authentication instead of the Bearer token.

refs opencloud-eu/opencloud#1517

@JammingBen JammingBen self-assigned this Sep 22, 2025
Copilot AI review requested due to automatic review settings September 22, 2025 08:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes authentication handling for password-protected public links by refactoring the makeRequest method to use the Auth service instead of manual header construction. This ensures that authenticated users in a password-protected public link context use the password for authentication rather than the Bearer token.

Key changes:

  • Replaced manual authentication header construction with the Auth service
  • Updated HTTP client selection logic to consider public link context
  • Simplified authentication flow by delegating header management to the Auth class

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

As authenticated user in a password protected public link context, the `makeRequest` method of the `useRequest` composable should use the password for authentication instead of the Bearer token.
@JammingBen JammingBen force-pushed the fix/authenticated-requests-public-link branch from e9f7919 to 663235e Compare September 22, 2025 09:52
@JammingBen JammingBen requested a review from kulmann September 22, 2025 10:02
Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💪

@kulmann kulmann merged commit 988fab2 into main Sep 22, 2025
28 checks passed
@kulmann kulmann deleted the fix/authenticated-requests-public-link branch September 22, 2025 10:18
@openclouders openclouders mentioned this pull request Sep 22, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants