This plugin provides LNURL Auth for WordPress. Login to WordPress with Bitcoin Lightning ⚡️
With LNURL Auth for WordPress LNURL Auth is now available for WordPress. Add LNURL Auth to the WordPress login form or use the shortcode
[lnurl_auth] to use LNURL anywhere on your site.
- Custom Colors
- Custom Callback URL
- Custom Redirect URL
- Node Bann- & Allowlist
- Enable/Disable User Registrations
- Naming Options for New Users
- Set Role(s) for New Users
- Toggle Login Options
If the setting to create users is enabled in the plugin settings, the plugin will automatically generate new users. Be wise, with great power comes great responsibility.
A demo WordPress installation with LNURL Auth is available here.
Overall, LNURL Auth login is a convenient and secure way for users of the Lightning Network to log into third-party services using their Lightning accounts. It allows users to easily and securely log into services without needing to create separate accounts or handle sensitive information. This process typically involves the user scanning a LNURL with their Lightning wallet app.
The LNURL auth QR code or URL contains a unique and time-sensitive text string. This text string is sent to the visitor’s wallet. The visitor’s wallet signs this text string with the private key and sends back the response with the signed text string. This signature can then be validated to confirm the visitor’s identity.
Read the specs here: https://github.com/lnurl/luds/blob/luds/04.md
- eza/lnurl-php: https://github.com/eza/lnurl-php
- endroid/qr-code https://github.com/endroid/qr-code
Use this code freely, widely and for free. Provision of this code provides and implies no guarantee.
Please respect the GPL v3 licence, which is available via http://www.gnu.org/licenses/gpl-3.0.html
- Upload the
lnurl-authfolder to the
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Check out the plugins settings page
Contributors & Developers
“LNURL Auth For WordPress” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- Set error reporting to
falseinside auth callback function, so we do not have any php warnings/errors in our json response.
error_logsand change all callback responses to
- Respect redirect_to query parameter on wp-login.php.
- Provide user object to wp_login action.
- Initial version.