Swag authentification with WordPress

From Swag software a user can authentify himself with Swag WordPress.

WordPress required extensions :

  • JSON API plugin : https://github.com/PI-Media/json-api
  • JSON API AUTH plugin : https://wordpress.org/plugins/json-api-auth/#description

After installation & activation of the required plugins :

  • active Auth controller from JSON API plugin settings

Using API :

  • create nonce : https://swagsoftware.net/api/get_nonce/?controller=auth&method=generate_auth_cookie
  • generate nonce for controller : https://swagsoftware.net/api/auth/generate_auth_cookie/?nonce=b58e163ad5&username=guest&password=guest

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *