Adding Multi-Factor Authentication To PHP Web Applications
The UNLOQ PHP SDK allows you to develop secure Passwordless or Multi-Factor authentication systems.
Securing PHP web applications with a strong authentication mechanism is one of the best practices for preventing cyber-attacks, with an increasing adoption throughout the development community.
UNLOQ is one of the few providers of Passwordless authentication through push notifications on the user’s mobile device, making the login experience as secure and easy as can be.
Besides push notifications, we have also developed authentication through Time-based One-time Password (OTP) or Email.
These 3 authentication mechanisms can be used individually or combined, for a true Multi-Factor Authentication experience.
The UNLOQ PHP SDK
The UNLOQ Library allows you to use the UNLOQ API in any Composer-using system and implement a Passwordless, Multi-factor or Two Factor Authentication system.
SDK usage
The UNLOQ PHP SDK is accompanied by a <docs> folder where you can find:
UNLOQ use cases
Whether you decide to implement UNLOQ as the Identity provider, hence building a passwordless system, or as a Second factor, therefore improving your current authentication system, you can do so.
General usage:
- Instantiate
- Making requests
- Response formats, both positive and negative
- Error Codes and possible causes
Implementing UNLOQ Authentication
- Requirements
- Authentication through ‘EMAIL’ method
- Authentication through ‘UNLOQ’ method
- Authentication through ‘OTP’ method
Authentication SDK implementation
It is worth noting that the UNLOQ PHP SDK can be used for MFA development by any of the following PHP frameworks:
To implement the UNLOQ authentication in your PHP web application, you will require an API Key.
To get an API Key, you need to take the following steps:
- Create an account on unloq.io/register
- Go to the Applications tab in your new account
- Click “Add Application” and select “Web Application”-> “Custom solution”
- Go to Settings in your new application-> API Keys
- Create a new API Key and save it somewhere safe. When creating it, it will be the only time you will be able to see it, so be sure that you save it.
Read more on SDK implementation here:
Support and Feedback
Please visit the UNLOQ documentation website for more information.
If you find a bug, please submit the issue in Github directly.
If you require additional assistance, send us a message through the form on our contact page or at team@unloq.io.