@springmicro/auth 0.1.8 → 0.1.9
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.md +20 -15
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
# @springmicro/auth
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Auth config supplied for connecting with a Casdoor instance. Uses [auth-astro](https://github.com/nowaythatworked/auth-astro).
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
pnpm run build
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
## Install in repo (locally)
|
|
5
|
+
## Usage
|
|
10
6
|
|
|
11
7
|
```bash
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
pnpm run astro add auth-astro
|
|
15
|
-
pnpm add --workspace @springmicro/auth
|
|
8
|
+
npm i -g @springmicro/cli
|
|
9
|
+
springmicro add auth
|
|
16
10
|
```
|
|
17
11
|
|
|
18
12
|
```ts
|
|
@@ -43,12 +37,23 @@ export default defineConfig({
|
|
|
43
37
|
});
|
|
44
38
|
```
|
|
45
39
|
|
|
46
|
-
|
|
40
|
+
### Casdoor
|
|
41
|
+
|
|
42
|
+
In the `application` settings, add the callback URL of `http://yourhost/callback`. Enable auto signin (optional).
|
|
43
|
+
|
|
44
|
+
## Development
|
|
47
45
|
|
|
48
|
-
Build
|
|
46
|
+
### Build
|
|
49
47
|
|
|
50
48
|
```bash
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
pnpm run build
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Install in repo (locally)
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
cd astro-demo-project
|
|
56
|
+
pnpm run astro add react
|
|
57
|
+
pnpm run astro add auth-astro
|
|
58
|
+
pnpm add --workspace @springmicro/auth
|
|
54
59
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@springmicro/auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"vite": "^5.2.0",
|
|
35
35
|
"vite-plugin-dts": "^3.9.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "68c03879e19bc3f7381bfad0663c14f85c32514b"
|
|
38
38
|
}
|