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

[full-ci] Webfinger redirect app #8884

Merged
merged 10 commits into from
Apr 26, 2023
Merged

[full-ci] Webfinger redirect app #8884

merged 10 commits into from
Apr 26, 2023

Conversation

kulmann
Copy link
Member

@kulmann kulmann commented Apr 20, 2023

Description

This PR introduces a new app which is responsible for performing an authenticated webfinger discovery and either redirecting the user to their ownCloud instance or showing a comprehensible error message.

In its current state the app is meant for being run in a standalone ownCloud Web deployment - the full fledged ocis instance is the redirect target after the webfinger discovery. ;-) I still decided to put the app into our mono-repo because in the future this will transition into a multi-tenancy instance selection and that makes sense to be run alongside our other apps then.

Related Issue

How Has This Been Tested?

Not at all, yet. Need to write unit tests...

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

Checklist:

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

Open tasks:

  • Nicer state messages ( discovery / error / redirect)
  • Change web-runtime to allow a defaultExtension that doesn't have a nav item 😠

Followup tasks:

  • Documentation how to set it up
  • Unit tests

@update-docs
Copy link

update-docs bot commented Apr 20, 2023

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.

@kulmann kulmann marked this pull request as draft April 20, 2023 22:02
Copy link
Member

@dschmidt dschmidt left a comment

Choose a reason for hiding this comment

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

So far so good!

@ownclouders
Copy link
Contributor

ownclouders commented Apr 25, 2023

Results for e2e-tests oCIS https://drone.owncloud.com/owncloud/web/35110/12/1

💥 To see the trace, please open the link in the console ...

npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/35110/tracing/space-members-can-be-invited-with-an-expiration-date-alice-2023-4-25-10-24-29.zip

💥 The e2e-ocis tests pipeline failed. The build has been cancelled.

@kulmann kulmann self-assigned this Apr 25, 2023
@kulmann kulmann marked this pull request as ready for review April 25, 2023 09:50
@kulmann kulmann changed the title Webfinger redirect app [full-ci] Webfinger redirect app Apr 25, 2023
@kulmann kulmann requested a review from JammingBen April 25, 2023 20:26
@sonarcloud
Copy link

sonarcloud bot commented Apr 25, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@AlexAndBear AlexAndBear 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 22d42b3 into master Apr 26, 2023
@delete-merged-branch delete-merged-branch bot deleted the webfinger-app branch April 26, 2023 05:49
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.

[web] Navigate user to their available Schools
5 participants