-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Improved setup wizard client create process #389
Conversation
e192050
to
d0c3f64
Compare
…RL settings; fixing empty site title causing error in client creation; adding helper functions to WP_Auth0_Options for getting default client URL settings
0f95032
to
2ba3c50
Compare
…error message if WP_Error
2ba3c50
to
66be3d0
Compare
@glena - Main thing here is just making sure I'm using the right default URLs in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM in general +1 for Doc Headers
lib/WP_Auth0_Lock10_Options.php
Outdated
$protocol = $this->_get_boolean( $this->wp_options->get( 'force_https_callback' ) ) ? 'https' : null; | ||
|
||
return site_url( 'index.php?auth0=1', $protocol ); | ||
$protocol = $this->_get_boolean( $this->wp_options->get( 'force_https_callback' ) ) ? 'https' : ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why '' vs null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is used later $site_url = empty( $protocol ) ? site_url( 'index.php' ) : site_url( 'index.php', $protocol );
.
Honestly it is the same but would prefer null too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please test 😄 Might be worth adding some basic tests at least to ensure all the various URL generators/modifiers are valid. |
WP_Auth0_Api_Client::create_client()
to improve the URLs being saved by default and combine create with update (web_origins
can now be pushed during create)WP_Auth0_DBManager
to grab correct links in the correct format