Skip to content

Limit inviteAcceptDialog values to URL path or base that exactly matc… - #924

Merged
rhafer merged 1 commit into
mainfrom
ignore-unknown-invite-urls
Nov 10, 2026
Merged

rhafer merged 1 commit into
mainfrom
ignore-unknown-invite-urls

Conversation

@VicDeo

@VicDeo VicDeo commented Oct 27, 2026 •

Copy link
Copy Markdown

…hes the provider domain and proto.

inviteAcceptDialog is an URL path, not an absolute URL.

https://github.com/cs3org/OCM-API/blob/develop/IETF-OCM.md?plain=1#L765

OPTIONAL: inviteAcceptDialog (string) - URL path of a web page where a user can accept an invite, when query parameters "token" and "providerDomain" are provided. Implementations that offer the "invites" capability SHOULD provide this URL as well in order to enhance the UX of the Invite Flow. If for example "/index.php/apps/sciencemesh/accept" is specified here then a WAYF Page SHOULD redirect the end-user to /index.php/apps/sciencemesh/accept?token=zi5kooKu3ivohr9a&providerDomain=cloud.example.org.

For the backward compatibility we allow it to be an absolute URL if both proto and host match the idp provider proto and host accordingly.
Introduced a new error for the incorrect inviteAcceptDialog value.

@VicDeo
VicDeo force-pushed the ignore-unknown-invite-urls branch from d15c956 to 535c109 Compare October 28, 2026 14:58
@VicDeo
VicDeo force-pushed the ignore-unknown-invite-urls branch from 535c109 to 6ec341b Compare November 2, 2026 20:43

@rhafer rhafer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks. Looks good to me.

@rhafer
rhafer merged commit 5b77843 into main Nov 10, 2026
19 checks passed
@rhafer
rhafer deleted the ignore-unknown-invite-urls branch November 10, 2026 09:47
@openclouders openclouders mentioned this pull request Nov 9, 2026
1 task
@v-scharf v-scharf added the backport-required Needs a backport to the current stable branch label Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-required Needs a backport to the current stable branch Type:Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants