Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

refactor: remove tokeninfo endpoint usage - #10869

Merged
JammingBen merged 2 commits into
masterfrom
refactor/remove-tokeninfo-endpoint
Jul 4, 2024
Merged

JammingBen merged 2 commits into
masterfrom
refactor/remove-tokeninfo-endpoint

Conversation

@JammingBen

@JammingBen JammingBen commented May 2, 2024 •

Copy link
Copy Markdown
Contributor

Description

Removes the tokeninfo endpoint usage and uses the webdav response instead to retrieve all necessary information to resolve a public/internal link.

The biggest change here is that we don't get the file id anymore when resolving an internal link. To solve this we need to login the user first and then redirect to the link resolving page again (only this time with an authenticated context, hence the new route /i/...). After that last redirect the authenticated user can now fetch all necessary information for resolving.

See owncloud/ocis#8858 for more detail.

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

@JammingBen JammingBen self-assigned this May 2, 2024
@update-docs

update-docs Bot commented May 2, 2024

Copy link
Copy Markdown

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@JammingBen
JammingBen force-pushed the refactor/remove-tokeninfo-endpoint branch from 993cf84 to e9b9ca9 Compare May 17, 2024 13:28
@JammingBen
JammingBen force-pushed the refactor/remove-tokeninfo-endpoint branch from e9b9ca9 to 41e4d01 Compare May 31, 2024 10:43
@sonarqubecloud

Copy link
Copy Markdown

@JammingBen
JammingBen marked this pull request as ready for review May 31, 2024 12:02
Removes the tokeninfo endpoint usage and uses the webdav response instead to retrieve all necessary information to resolve a public/internal link.

The biggest change here is that we don't get the file id anymore when resolving an internal link. To solve this we need to login the user first and then redirect to the link resolving page again (only this time with an authenticated context, hence the new route `/i/...`). After that last redirect the authenticated user can now fetch all necessary information for resolving.

See owncloud/ocis#8858 for more detail.
@JammingBen
JammingBen force-pushed the refactor/remove-tokeninfo-endpoint branch from 41e4d01 to da19d46 Compare July 3, 2024 10:07
@JammingBen
JammingBen requested a review from kulmann July 4, 2024 08:22

@kulmann kulmann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@JammingBen
JammingBen enabled auto-merge July 4, 2024 08:32
@sonarqubecloud

sonarqubecloud Bot commented Jul 4, 2024

Copy link
Copy Markdown

@JammingBen
JammingBen merged commit d3a92b2 into master Jul 4, 2024
@kulmann
kulmann deleted the refactor/remove-tokeninfo-endpoint branch September 5, 2024 19:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Sharing NG] Replace tokeninfo endpoint

2 participants