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

Update new Application creation URLs #514

Merged
merged 1 commit into from
Aug 2, 2018

Conversation

joshcanhelp
Copy link
Contributor

Changing to URLs without a query string.

@joshcanhelp joshcanhelp added this to the v3-Next milestone Aug 1, 2018
@@ -479,7 +479,7 @@ public static function create_client( $domain, $app_token, $name ) {
'app_type' => 'regular_web',

'callbacks' => array(
$options->get_wp_auth0_url(),
site_url(),
Copy link
Member

Choose a reason for hiding this comment

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

This the same URL?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same URL except get_wp_auth0_url() has a URL param. Query strings aren't validated so I'm basically just removing the query string.

@@ -492,8 +492,8 @@ public static function create_client( $domain, $app_token, $name ) {

// A set of URLs that are valid to redirect to after logout from Auth0
'allowed_logout_urls' => array(
$options->get_logout_url(),
Copy link
Member

Choose a reason for hiding this comment

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

What happens if someone currently has logout set to logout url? I mean seems weird, just asking.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as the other, just removing query strings because they're not validated

Copy link
Member

@cocojoe cocojoe left a comment

Choose a reason for hiding this comment

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

LGTM

@joshcanhelp joshcanhelp merged commit 4647e97 into dev Aug 2, 2018
@joshcanhelp joshcanhelp deleted the add-allowed-origins-to-setup branch August 2, 2018 16:31
@joshcanhelp joshcanhelp added bug and removed bug labels Aug 8, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants