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

feat: allow deep links in redirectTo validation #513

Merged
merged 6 commits into from May 20, 2024

Conversation

onehassan
Copy link
Contributor

No description provided.

@onehassan onehassan self-assigned this May 1, 2024
@onehassan onehassan force-pushed the feat/oauth-redirect-deep-link branch from a4bb915 to 59e3665 Compare May 5, 2024 16:18
@dbarrosop
Copy link
Contributor

Please, can you add tests for the new schemas supported? Also, same for the go bit (file validation_test.go).

src/validation/fields.ts Outdated Show resolved Hide resolved
@onehassan onehassan force-pushed the feat/oauth-redirect-deep-link branch from 98d8ab3 to f8240bd Compare May 18, 2024 11:53
case url.endsWith('/**'):
break;
case url.endsWith('/*'):
url += '*';
Copy link
Contributor

Choose a reason for hiding this comment

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

will this modify the original string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this will mutate the url but here we're just looping through a copy of AUTH_ACCESS_CONTROL_ALLOWED_REDIRECT_URLS and so the array of the allowed redirect urls won't be mutated

@onehassan onehassan merged commit 6d2fcaf into main May 20, 2024
6 checks passed
@onehassan onehassan deleted the feat/oauth-redirect-deep-link branch May 20, 2024 10:17
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.

None yet

2 participants