-
-
Notifications
You must be signed in to change notification settings - Fork 655
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webAuth: Better compare web auth callback's
realm
with current realm.
Part of #4146. Rather than doing a straight string comparison, which will unfairly reject on, e.g., a trailing slash in one URL but not the other, parse them both with `react-native-url-polyfill`, made available at the global URL in 413bf95. Also stop using `url-parse` at all; `authFromCallbackUrl` is the only place where we use it. We introduced `react-native-url-polyfill` in c675cdd, for #4081, and we'll keep using that for #4146. Not only is it specifically intended for RN projects, but its README and implementation make it very clear that it's an implementation of a standard; in particular, the WHATWG URL Standard [1]. [1] https://url.spec.whatwg.org/
- Loading branch information
1 parent
20427e7
commit 26272d8
Showing
4 changed files
with
32 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters