Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: token refresh in single binary and wopi deployment example #9167

Merged
merged 1 commit into from
May 16, 2024

Conversation

DeepDiver1975
Copy link
Member

@DeepDiver1975 DeepDiver1975 commented May 14, 2024

Description

When refreshing the oidc client loads ocis in an iframe - which was disallowed until this fix.

Related Issue

How Has This Been Tested?

  • cd deployment/example/ocis_wopi
  • docker compose up
  • xdg-open https://ocis.owncloud.test/
  • login
  • open developer console in browser
  • wait 5m
  • see token expiring and being refreshed
  • observe to stay logged in

Screenshots (if appropriate):

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 only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

This comment was marked as resolved.

@DeepDiver1975 DeepDiver1975 force-pushed the fix/wopi-example-token-refresh branch from 9490017 to b4f8ec1 Compare May 14, 2024 15:20
Copy link
Contributor

@rhafer rhafer left a comment

Choose a reason for hiding this comment

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

AFAIK the problem is also present in a default deployment (i.e. without wopi and any other external stuff). So I guess we need to update the default config https://github.com/owncloud/ocis/blob/master/services/proxy/pkg/config/csp.yaml as well?

@DeepDiver1975
Copy link
Member Author

AFAIK the problem is also present in a default deployment

Testing this ...

@DeepDiver1975
Copy link
Member Author

Single binary has the same issue....

@DeepDiver1975 DeepDiver1975 force-pushed the fix/wopi-example-token-refresh branch from b4f8ec1 to c1eb5e6 Compare May 14, 2024 15:40
@DeepDiver1975 DeepDiver1975 requested a review from rhafer May 14, 2024 15:40
@DeepDiver1975 DeepDiver1975 changed the title fix: token refresh in wopi deployment example fix: token refresh in single binary and wopi deployment example May 14, 2024
Copy link
Contributor

@micbar micbar left a comment

Choose a reason for hiding this comment

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

🎉

@DeepDiver1975 DeepDiver1975 force-pushed the fix/wopi-example-token-refresh branch from c1eb5e6 to 0cf3298 Compare May 15, 2024 08:13
@DeepDiver1975
Copy link
Member Author

rebased ..... let's see if drone likes this now ..... 🤷

@micbar
Copy link
Contributor

micbar commented May 15, 2024

@DeepDiver1975 The tests are failing because they expect different CSP headers.

@DeepDiver1975 DeepDiver1975 force-pushed the fix/wopi-example-token-refresh branch from 0cf3298 to ba2ff61 Compare May 16, 2024 14:08
Copy link

sonarcloud bot commented May 16, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@DeepDiver1975 DeepDiver1975 merged commit 9bc958e into master May 16, 2024
4 checks passed
@delete-merged-branch delete-merged-branch bot deleted the fix/wopi-example-token-refresh branch May 16, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Access token renewal fails in web ui
5 participants