Skip to content

Horndev/lnurl.net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.NET Core

lnurl.net

Library for Lightning Network URL in C#

Background

See https://github.com/fiatjaf/awesome-lnurl for some great examples and background on LNURL.

LNURL-AUTH + MVC

The objective of the library is to enable users to uthenticate on .NET websites using their Lightning wallet.

For example, Bitcoin Lightning Wallet (BLW) supports this.

Installation

Install like any other MVC Core middleware in your Web App's Startup.cs:

services.AddAuthentication(options =>
{
    options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
})
.AddCookie(options =>
{
    options.LoginPath = "/signin";
    options.LogoutPath = "/signout";
})
.AddLnurlAuth(options =>
{
    options.CallbackPath = "";
    options.AccessDeniedPath = "";
});

Options

CallbackPath: This is where the wallet will call back

AccessDeniedPath: This is the custom endpoint to direct the user on failed authentication.

About

Library for Lightning Network URL in C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published