This plugin enable authentication from Zynatic Medlemsregister by wp_remote_get call to
https://www.zynatic.se/
The authentication is performed in several steps to reduce the risk of leakage of user credentials
- WordPress sends an initiate to https://www.zynatic.se/ and receives a public key in the responce
- WordPress encrypts user credentials using the received public key
- WordPress sends the encrypted credentials to https://www.zynatic.se/
- https://www.zynatic.se/ decrypt the credentials using its own secret key and validate credentials
- https://www.zynatic.se/ sends a responce informing if the credentials is validated correctly and the user is allowed to login
The user is created in https://www.zynatic.se/ if the username is missing in https://www.zynatic.se/, the credentials are validated
ok in WordPress and the name are equal in https://www.zynatic.se/ and WordPress.
The user is created in WordPress if the user credentials is validated ok in https://www.zynatic.se/ and the user is missing in WordPress.
A WordPress super admin user is granted access in WordPress even if the user is missing in https://www.zynatic.se/.