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

Add auth0_lock_options filter #691

Merged
merged 1 commit into from
May 29, 2019
Merged

Conversation

joshcanhelp
Copy link
Contributor

Changes

  • Adds auth0_lock_options filter to modify Lock options before using
  • Renames unreleased wp_auth0_use_management_api_for_userinfo to auth0_use_management_api_for_userinfo for consistency.

References

Docs PR to add new filter, change previous

Testing

  • This change adds unit test coverage
  • This change has been tested on WP 5.2.1

Checklist

  • All existing and new tests complete without errors
  • All code quality tools/guidelines in the Contribution guide have been run/followed
  • All active GitHub CI checks have passed

@joshcanhelp joshcanhelp added this to the 3.11.0 milestone May 28, 2019
@@ -57,7 +57,7 @@ public function tearDown() {
delete_transient( WP_Auth0_Api_Client_Credentials::TOKEN_TRANSIENT_KEY );
delete_transient( WP_Auth0_Api_Client_Credentials::SCOPE_TRANSIENT_KEY );

remove_filter( 'wp_auth0_use_management_api_for_userinfo', '__return_false', 10 );
remove_filter( 'auth0_use_management_api_for_userinfo', '__return_false', 10 );
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Filter has not been released so OK to change name

@@ -392,7 +392,7 @@ public function testThatLoginUserIsCalledWithIdTokenIfFilterIsSetToFalse() {
self::$opts->set( 'client_id', '__test_client_id__' );
self::$opts->set( 'client_secret', '__test_client_secret__' );
self::$opts->set( 'client_signing_algorithm', 'HS256' );
add_filter( 'wp_auth0_use_management_api_for_userinfo', '__return_false', 10 );
add_filter( 'auth0_use_management_api_for_userinfo', '__return_false', 10 );
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Filter has not been released so OK to change name

@joshcanhelp joshcanhelp requested a review from a team May 28, 2019 19:54
@joshcanhelp joshcanhelp merged commit d022f61 into master May 29, 2019
@joshcanhelp joshcanhelp deleted the add-lock-settings-filter branch July 9, 2019 13:38
@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