You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 7, 2023. It is now read-only.
This module includes a plug and play authentication framework to be used in Express applications, it implements the DID Authentication protocol designed by RIF Identity.
14
25
26
+
## Features
27
+
28
+
-**Sign up** flow authenticating user's DID and Verifiable Credentials
29
+
-**Sign in** flow authenticating user's DID
30
+
-**Authenticate requests** using Express middleware
31
+
-**Log out** flow
32
+
15
33
## Usage
16
34
17
35
This approach will add the following endpoints to your app:
@@ -22,7 +40,6 @@ This approach will add the following endpoints to your app:
22
40
- POST `/refresh-token`
23
41
- POST `/logout`
24
42
25
-
26
43
```typescript
27
44
importexpressfrom'express'
28
45
importsetupAppfrom'@rsksmart/express-did-auth'
@@ -54,6 +71,10 @@ app.listen(port, () => logger.info(`My express API with did-auth running in ${po
54
71
55
72
Check out more configuration options and usage details in our [RSK Developers Portal](https://developers.rsk.co/rif/identity/).
56
73
74
+
## Open work
75
+
76
+
- Formalize and implement Selective Disclosure request standard schema
77
+
57
78
## Test
58
79
59
80
From base repo directory run `npm test` or any of the described [test script variants](../../README#test).
@@ -65,4 +86,4 @@ From base repo directory run `npm test` or any of the described [test script var
0 commit comments