Skip to content

Official docs out of date for API grant types needed #949

@roborourke

Description

@roborourke

Checklist

  • I have looked into the Readme and the documentation, and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

Adding Sync configuration settings in the admin fails with a fatal error and no useful error message if the application API is not configured to have the currently undocumented grant types of read:connections and I think create:user_tickets. Additionally depending on the sync options chosen you might need delete:users as well as read:users and create:users and update:users.

Those should at least be documented in the readme here, but you'll know best which scopes are actually needed now with v5.

To provide proper error messages and handling it probably needs read:client_grants too to help users know how to resolve the problem.

Reproduction

  1. Create an auth0 application and configure the API per the current docs with read:users and update:users scopes enabled
  2. Go to the admin Sync settings page for the plugin and enter a db connection name
  3. Save changes
  4. Fatal error screen shows

Additional context

No response

wp-auth0 version

5.5

WordPress version

6.9

PHP version

8.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions