@sviy/authglue 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{README → README.md} +11 -1
- package/package.json +1 -1
package/{README → README.md}
RENAMED
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
OIDC authentication glue for Express apps.
|
|
4
4
|
|
|
5
|
-
Wraps
|
|
5
|
+
Wraps into a single setup call :
|
|
6
|
+
[`openid-client`](https://www.npmjs.com/package/openid-client) and
|
|
7
|
+
[`express-session`](https://www.npmjs.com/package/express-session)
|
|
8
|
+
|
|
9
|
+
Your app redirects to any OIDC provider, handles the callback, creates a session, and gives you back `req.session.user`.
|
|
10
|
+
No auth boilerplate per app.
|
|
6
11
|
|
|
7
12
|
## Install
|
|
8
13
|
|
|
@@ -10,6 +15,11 @@ Wraps [`openid-client`](https://www.npmjs.com/package/openid-client) and [`expre
|
|
|
10
15
|
npm install @sviy/authglue
|
|
11
16
|
```
|
|
12
17
|
|
|
18
|
+
## Dependencies
|
|
19
|
+
- openid-client — OIDC client library
|
|
20
|
+
- express-session — session middleware
|
|
21
|
+
- @sequencemedia/session-file-store — file-based session store
|
|
22
|
+
|
|
13
23
|
## Usage
|
|
14
24
|
|
|
15
25
|
```js
|