@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.
Files changed (2) hide show
  1. package/README.md +20 -15
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,18 +1,12 @@
1
1
  # @springmicro/auth
2
2
 
3
- ## Build
3
+ Auth config supplied for connecting with a Casdoor instance. Uses [auth-astro](https://github.com/nowaythatworked/auth-astro).
4
4
 
5
- ```bash
6
- pnpm run build
7
- ```
8
-
9
- ## Install in repo (locally)
5
+ ## Usage
10
6
 
11
7
  ```bash
12
- cd astro-demo-project
13
- pnpm run astro add react
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
- ## Future: Astro Integration
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 a wrapper around [auth-astro](https://github.com/nowaythatworked/auth-astro)'s integration to be able to `astro add @springmicro/auth`.
46
+ ### Build
49
47
 
50
48
  ```bash
51
- # Relavant sources
52
- https://raw.githubusercontent.com/nowaythatworked/auth-astro/main/src/config.ts
53
- https://raw.githubusercontent.com/nowaythatworked/auth-astro/main/src/integration.ts
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.8",
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": "7f7d9ece4d987ffceb47b504a95b973544862086"
37
+ "gitHead": "68c03879e19bc3f7381bfad0663c14f85c32514b"
38
38
  }