1
- # Lightning Service Authentication Token (LSAT) proxy
1
+ # L402 ( Lightning HTTP 402) API Key proxy
2
2
3
3
Aperture is your portal to the Lightning-Native Web. Aperture is used in
4
4
production today by [ Lightning Loop] ( https://lightning.engineering/loop ) , a
5
5
non-custodial on/off ramp for the Lightning Network.
6
6
7
7
Aperture is a HTTP 402 reverse proxy that supports proxying requests for gRPC
8
- (HTTP/2) and REST (HTTP/1 and HTTP/2) backends using the [ LSAT Protocol
9
- Standard] ( https://lsat.tech/ ) . LSAT stands for: Lightning Service
10
- Authentication Token. They combine HTTP 402, macaroons, and the Lightning
11
- Network to create a new standard for authentication and paid services on the
12
- web.
13
-
14
- LSATs are a new standard protocol for authentication and paid APIs developed by
15
- Lightning Labs. LSATs can serve both as authentication, as well as a payment
16
- mechanism (one can view it as a ticket) for paid APIs. In order to obtain a
17
- token, we require the user to pay us over Lightning in order to obtain a
18
- preimage, which itself is a cryptographic component of the final LSAT token
8
+ (HTTP/2) and REST (HTTP/1 and HTTP/2) backends using the [ L402 Protocol
9
+ Standard] ( https://lsat.tech/ ) . L402 is short for: the Lightning HTTP 402
10
+ protocol. L402 combines HTTP 402, macaroons, and the Lightning Network to
11
+ create a new standard for authentication and paid services on the web.
12
+
13
+ L402 is a new standard protocol for authentication and paid APIs developed by
14
+ Lightning Labs. L402 API keys can serve both as authentication, as well as a
15
+ payment mechanism (one can view it as a ticket) for paid APIs. In order to
16
+ obtain a token, we require the user to pay us over Lightning in order to obtain
17
+ a preimage, which itself is a cryptographic component of the final L402 token
19
18
20
19
The implementation of the authentication token is chosen to be macaroons, as
21
20
they allow us to package attributes and capabilities along with the token. This
@@ -32,7 +31,7 @@ services and APIs.
32
31
33
32
** aperture**
34
33
35
- * Compilation requires go ` 1.13 .x ` or later.
34
+ * Compilation requires go ` 1.19 .x ` or later.
36
35
* To build ` aperture ` in the current directory, run ` make build ` and then copy the
37
36
file ` ./aperture ` from the local directory to the server.
38
37
* To build and install ` aperture ` directly on the machine it will be used, run the
@@ -49,5 +48,3 @@ services and APIs.
49
48
compare with ` sample-conf.yaml ` .
50
49
* Start aperture without any command line parameters (` ./aperture ` ), all configuration
51
50
is done in the ` ~/.aperture/aperture.yaml ` file.
52
-
53
- ```
0 commit comments