Skip to content

Added target to OpenInAppURL object #212

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

Merged
merged 4 commits into from
Jul 27, 2023
Merged

Conversation

glpatcern
Copy link
Member

@glpatcern glpatcern commented Jul 24, 2023

Also added action to AppProviderInfo.

The exercise here is to demonstrate a different kind of integration, where the app lives on an external cloud and uses its own login and storage. Therefore it can't be embedded in an iframe and the integration is more loose, with the user driving the Export to and Import from actions as opposed to a simple Open with.

@@ -44,6 +44,9 @@ message OpenInAppURL {
// OPTIONAL.
// The headers to be added to the request.
map<string, string> headers = 4;
// REQUIRED.
// Whether the target for the app URL is an iframe or a new page.
Target target = 5;
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure how target fits in here. Eg. doing a POST to a new tab is technically not possible.

ownCloud Web has a option WEB_OPTION_OPEN_APPS_IN_TAB -> `Configures whether apps and extensions should generally open in a new tab. It seems to fulfill the same purpose? In the future, this could also be a per user setting.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, with this not all combinations are legal, but the scope is for certain applications to go to a new tab/page as opposed to an iframe. We are trying to integrate Overleaf, but the integration would work quite differently than WOPI-based apps, therefore it makes sense (and it is necessary for CSP reasons) to have the user go directly to the app's URL, rather than embedding it in an iframe.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, ok this is currently not configure for oC Web. Because even if one configures Web to open everything in a new tab, it will open the app inside a iframe via the GET / POSt request.

@micbar this is highly interesting for future integrations

@glpatcern
Copy link
Member Author

@labkode can you also have a look?

@labkode labkode merged commit cfd1ad2 into cs3org:main Jul 27, 2023
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.

3 participants