• Resolved mmki

    (@mmki)


    Hi,

    In your documentation it is explained that Admin can get an API token with a custom script every 24 hours (recommended for production environments) or get token with fixed expiration time using Auth0 dashboard (recommended for testing).
    Probably most wp users use the second solution.

    Do you plan to improve getting tokens so it can be done automatically?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @mmki – Yes, we’ve been replacing that manual requirement with a Client Credentials grant (the “automatic” token you’re talking about) in several places. At this point, anything that needs a continuous connection to the management API (user login, password changes, email changes [next version]) performs this automatically. Things that are not changed often, like Rules management (account linking, profile enhancement, etc), still rely on that manual token but will be removed in a future version in favor of specific documentation on how to make those changes directly in the dashboard.

    Is there a specific action that you need a manual management token for? In handling the above, the API token field will eventually be removed so if you have a custom Management API scenario, it will necessary switch over to the new system. You only need to worry about that if you have any custom code running that uses the Management API.

    Hope that helps!

    Thread Starter mmki

    (@mmki)

    Thank, you for the reply. I think that will suffice for me. Right now I need it for email changes and account linking.

    Email changes make sense but account linking only needs the API token when you’re turning it on or off in wp-admin. Once the Rule is in place, the token is not required.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Getting API Token’ is closed to new replies.