I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Reply To: [Feature Request] API Key Auth instead of Login Creds

dashed-slug.net Forums General discussion [Feature Request] API Key Auth instead of Login Creds Reply To: [Feature Request] API Key Auth instead of Login Creds

#6117
alexg
Keymaster

Hi Phillip,

Looking into this a bit further:

The get_nonces API call can by design only be performed by a logged-in user (i.e. with the cookies method, going through wp-login.php). This is typically done by a browser but does not have to be.

My original intention was to be able to display the user_id and api_key with the [wallets_api_key] shortcode, so that the user is then able to enter it into some other application and grant access. But the user must first login to the website to obtain this information.

I am curious, what your login workflow would be? If the user can already login, what’s the use of having a user_id and key? What type of credential would the user provide to your application via your UI?